Skip to content

Commit

Permalink
format queue injection %
Browse files Browse the repository at this point in the history
  • Loading branch information
ticoann committed Jul 3, 2012
1 parent b889dbd commit 9b83871
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ WMStats.RequestTableDefaultConfig = function(requestData) {
{ "sDefaultContent": 0,
"sTitle": "queue injection",
"fnRender": function ( o, val ) {
return ((_get(o.aData.workflow, "status.inWMBS", 0) /
_get(o.aData.workflow, 'total_jobs', 1) * 100) + '%');
var result = (_get(o.aData.workflow, "status.inWMBS", 0) /
_get(o.aData.workflow, 'total_jobs', 1) * 100)
return (result.toFixed(1) + '%');
}
}

Expand Down

0 comments on commit 9b83871

Please sign in to comment.