Skip to content

Commit

Permalink
Merge pull request #29 from rsommer/patch-1
Browse files Browse the repository at this point in the history
Update graphiteSrv.js
  • Loading branch information
torkelo committed Jan 24, 2014
2 parents 5688f79 + 55e586c commit 81e9a48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/services/graphite/graphiteSrv.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -143,4 +143,4 @@ function (angular, _, $, config, kbn) {

});

});
});

0 comments on commit 81e9a48

Please sign in to comment.