Просмотр исходного кода

Merge pull request #29 from rsommer/patch-1

Update graphiteSrv.js
Torkel Ödegaard 12 лет назад
Родитель
Сommit
81e9a483bc
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/app/services/graphite/graphiteSrv.js

+ 2 - 2
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) {
 
   });
 
-});
+});