diff options
-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 e4fd1dc..e30a228 100644 --- a/jarmon/jarmon.js +++ b/jarmon/jarmon.js @@ -522,7 +522,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 |