Update graphiteSrv.js

If 'now' is not in 'data', the result is -1, so it should be '>= 0' ...
This commit is contained in:
Roland Sommer
2014-01-24 13:32:16 +01:00
parent 76b535a2e4
commit 55e586c2c6

View File

@@ -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');