Closed WLBF closed 7 years ago
according /lib/rrd.js
/lib/rrd.js
var fetch = function () { var args = null; if (args = conformed([String, Strict(Object), Function], arguments)) { var options = { cf: "LAST", start: nows(-3600), /* seconds since epoch */ end: nows(), /* seconds since epoch */ resolution: 60 /* seconds */ }; ....... } throw new Error("rrd: arguments' format not implemented!"); };
fetch function arguments should be fetch("foo.rrd", {...}, function () {}) but the README.md says
fetch("foo.rrd", {...}, function () {})
rrd.fetch(filename, "LAST", now - 1000, now, null, function (time, data) { console.log(time, data); });
Absolutely!
You nailed it ;)
according
/lib/rrd.js
fetch function arguments should be
fetch("foo.rrd", {...}, function () {})
but the README.md says