Commit 55e586c2 by Roland Sommer

Update graphiteSrv.js

If 'now' is not in 'data', the result is -1, so it should be '>= 0' ...
parent 76b535a2
......@@ -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
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment