Quellcode durchsuchen

Merge pull request #29 from rsommer/patch-1

Update graphiteSrv.js
Torkel Ödegaard vor 12 Jahren
Ursprung
Commit
81e9a483bc
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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) {
 
   });
 
-});
+});