Fixed subsecond intervals in interval_to_seconds

This commit is contained in:
Rashid Khan
2013-08-26 10:21:28 -07:00
parent 136bf66d39
commit 5dd1c55627

View File

@@ -192,7 +192,7 @@
// histogram & trends
kbn.interval_to_seconds = function(string) {
var matches = string.match(/(\d+)([Mwdhmsy])/);
var matches = string.match(/(\d+(?:\.\d+)?)([Mwdhmsy])/);
switch (matches[2]) {
case 'y':
return matches[1]*31536000;