aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/js/RrdDataFile.js (follow)
Commit message (Collapse)AuthorAgeFilesLines
* jsrrdgraph: Simplify matching logicPeter Wu2014-11-141-10/+8
| | | | | | Instead of using a flag for determining whether a value is set or not, set values that will never match and test for the validity of the results instead of checking the flags.
* jsrrdgraph: Improve performance for graphs in the futurePeter Wu2014-11-141-2/+14
| | | | | | | | The RRD file has finer details for more recent data points. When looking for a match for a graph past the last update ("the future"), a RRA would be picked which has a step size of 1. As we know that no data points are available, optimise this and return earlier with the full range set to NaN.
* jsrrdgraph: Fix undefined value issue in RrdDataFilePeter Wu2014-11-141-4/+6
| | | | | | | | | | | | `RRDRRAInfo.pdp_cnt` does not exist. A reference to the pdp_cnt member in a struct exists, this is available via the `getPdpPerRow()` method, so use that. (actually, `getMinStep() * getPdpPerRow()` can be simplified further, see below). While at it, replace the combination `RRDRRAInfo.getPdpPerRow() * RRAInfo.pdp_step` by `RRDRRAInfo.getStep()` since this is the same thing. As `RRDHeader.pdp_step` is copied into `RRDRRAInfo`, this can also be substituted.
* jsrrdgraph: Fixed jshint warnings/errorsPeter Wu2014-08-021-10/+11
| | | | | | | | | | | | | | | | | Many fall in the category missing semicolon, but there are legitimate bugs (like throwing an error with an undefined variable, using isInfinite instead of !isFinite or fabs instead of Math.abs). At some places, I moved the variable declarations to avoid duplicate definition warnings. Redundant breaks have been removed (after return / throw). Global variables were implicitly defined in RrdDataFile (which caught my attention) and Base64, these have been made local. Also fixed some whitespace errors. Yay, the consistency. Not all (style) issues are fixed.
* jsrrdgraph: RrdDataFile.js: Add async function (fetch_async) to RrdDataFileVincent Brillault2014-01-121-0/+39
|
* jsrrdgraph: RrdDataFile.js: splitting fetch into fetch & buildVincent Brillault2014-01-121-10/+15
|
* jsrrdgraph: RrdDataFile.js: fix space/tabulationVincent Brillault2014-01-121-21/+21
|
* import js directory from jsrrdgraph for client side graph renderingPim van den Berg2013-05-101-0/+129
Source: https://github.com/manuelluis/jsrrdgraph@276b880