Skip to content

Commit

Permalink
Fixed subsecond intervals in interval_to_seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed Aug 26, 2013
1 parent 99c5cb5 commit 85fd491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 85fd491

Please sign in to comment.