mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
round the seconds
This commit is contained in:
parent
6e94ccea07
commit
3588b9732f
@ -275,7 +275,12 @@ export default class InfluxDatasource {
|
||||
}
|
||||
date = dateMath.parse(date, roundUp);
|
||||
}
|
||||
return (date.valueOf() / 1000).toFixed(0) + 's';
|
||||
|
||||
var secs = date.valueOf() / 1000;
|
||||
if(roundUp) {
|
||||
secs += 1;
|
||||
}
|
||||
return secs.toFixed(0) + 's';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user