diff options
Diffstat (limited to 'jarmon')
-rw-r--r-- | jarmon/jarmon.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/jarmon/jarmon.js b/jarmon/jarmon.js index 586b892..c7af4ed 100644 --- a/jarmon/jarmon.js +++ b/jarmon/jarmon.js @@ -332,7 +332,19 @@ jarmon.RrdQueryRemote.prototype._callRemote = function(methodName, args) { this._download.always( function(res) { if(res instanceof Error) { - ret.reject(res); + //ret.reject(res); + result = { + data: [ + [args[0], 0], + [args[1], 0] + ], + lines: { + lineWidth: 0 + } + }; + ret.resolve(result); + return result; + } else { // Upon successful download convert the resulting binary // into an RRD file |