From 85fd491b136bc8e60ae3b46aedf4190b21413a03 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Mon, 26 Aug 2013 10:21:28 -0700 Subject: [PATCH] Fixed subsecond intervals in interval_to_seconds --- js/shared.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/shared.js b/js/shared.js index 217289ba09bf79..94c09d3f30d87b 100644 --- a/js/shared.js +++ b/js/shared.js @@ -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;