From 55e586c2c660b7ead4c13ce372666a13c0a1aecd Mon Sep 17 00:00:00 2001 From: Roland Sommer Date: Fri, 24 Jan 2014 13:32:16 +0100 Subject: [PATCH] Update graphiteSrv.js If 'now' is not in 'data', the result is -1, so it should be '>= 0' ... --- src/app/services/graphite/graphiteSrv.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/services/graphite/graphiteSrv.js b/src/app/services/graphite/graphiteSrv.js index e7e7b2ac87f..c11efaa1a72 100644 --- a/src/app/services/graphite/graphiteSrv.js +++ b/src/app/services/graphite/graphiteSrv.js @@ -42,7 +42,7 @@ function (angular, _, $, config, kbn) { if (date === 'now') { return 'now'; } - else if (date.indexOf('now') > 0) { + else if (date.indexOf('now') >= 0) { date = date.substring(3); date = date.replace('m', 'min'); date = date.replace('M', 'mon'); @@ -143,4 +143,4 @@ function (angular, _, $, config, kbn) { }); -}); \ No newline at end of file +});