summaryrefslogtreecommitdiff
path: root/jarmon/jarmon.js
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-20 03:38:18 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-20 03:38:18 -0500
commit21c22db81eebb576ff8e134ad1c9efdabf58da3d (patch)
tree93811221ee539867639a3d8f7ba414c91f416233 /jarmon/jarmon.js
parent866ec50736636091bea08ea2eb1a7b4add13a7dc (diff)
parent9f564fe0d5b60a5d6fe5287ca3b8f78849f47163 (diff)
Merge branch 'heads/srix/master' into lukeshu/master
Diffstat (limited to 'jarmon/jarmon.js')
-rw-r--r--jarmon/jarmon.js14
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