Author: croberts
Date: 2012-04-27 16:46:08 +0000 (Fri, 27 Apr 2012)
New Revision: 5351
Modified:
trunk/cumin/resources/app.js
Log:
Eliminating a bit of code duplication.
Modified: trunk/cumin/resources/app.js
===================================================================
--- trunk/cumin/resources/app.js 2012-04-27 16:03:46 UTC (rev 5350)
+++ trunk/cumin/resources/app.js 2012-04-27 16:46:08 UTC (rev 5351)
@@ -484,10 +484,7 @@
chartParams = wooly.session.branch(jsonurl);
// for long-duration charts, updating is not particularly useful
if(chartParams.duration <= MAX_UPDATE_CHART_DURATION) {
- var jsonurl =
$(id).getParent().getElements('a')[chart_href].get('href');
- var passback = "";
- allCharts['chartNowTime'] = new Date();
- wooly.setIntervalUpdate(jsonurl, stathandler, 0, passback, true);
+ drawSingleChart(id);
}
}
}
@@ -519,7 +516,7 @@
}
/*
- The parseJson function takes the output from cumin and massages it into// maybe there
needs to be updatesinglechart that will check duration, etc
+ The parseJson function takes the output from cumin and massages it into
something that is useful for the charting library in use (currently jqplot).
It is most definitely easier to tweak this function as needed than it is to
make significant (and possibly temporary) adjustments to the cumin output
Show replies by date