Commit 85fd491b by Rashid Khan

Fixed subsecond intervals in interval_to_seconds

parent 99c5cb5e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment