Skip to content

Commit

Permalink
Merge pull request #57 from benjchristensen/dashboard-js-fix
Browse files Browse the repository at this point in the history
Dashboard js fix
  • Loading branch information
benjchristensen committed Dec 21, 2012
2 parents 646bf0d + 28c179e commit 40bb191
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@
*/
function preProcessData(data) {
validateData(data);
// clean up the 'name' field so it doesn't have invalid characters
data.name = data.name.replace(/[.:-]/g,'_');
// do math
converAllAvg(data);
calcRatePerSecond(data);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
if(displayName.substring(0, 36) == 'APIDependencyCommand_CircuitBreaker_') {
displayName = displayName.substring(36, displayName.length);
}
if(displayName.length > 32) {
displayName = displayName.substring(0,4) + "..." + displayName.substring(displayName.length-20, displayName.length);
}
%>

<div id="chart_CIRCUIT_<%= name %>" class="chart" style="position:absolute;top:0px;left:0; float:left; width:100%; height:100%;"></div>
Expand Down

0 comments on commit 40bb191

Please sign in to comment.