mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixed subsecond intervals in interval_to_seconds
This commit is contained in:
parent
99c5cb5ef5
commit
85fd491b13
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user