Merge pull request #29 from rsommer/patch-1

Update graphiteSrv.js
This commit is contained in:
Torkel Ödegaard 2014-01-24 05:23:04 -08:00
commit 81e9a483bc

View File

@ -42,7 +42,7 @@ function (angular, _, $, config, kbn) {
if (date === 'now') { if (date === 'now') {
return 'now'; return 'now';
} }
else if (date.indexOf('now') > 0) { else if (date.indexOf('now') >= 0) {
date = date.substring(3); date = date.substring(3);
date = date.replace('m', 'min'); date = date.replace('m', 'min');
date = date.replace('M', 'mon'); date = date.replace('M', 'mon');