mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 13:39:19 -06:00
Frontend/utils: Add missing type (#17312)
This commit is contained in:
parent
83187fd8ea
commit
83af1bdff3
@ -133,7 +133,7 @@ kbn.secondsToHms = seconds => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
kbn.secondsToHhmmss = seconds => {
|
kbn.secondsToHhmmss = seconds => {
|
||||||
const strings = [];
|
const strings: string[] = [];
|
||||||
const numhours = Math.floor(seconds / 3600);
|
const numhours = Math.floor(seconds / 3600);
|
||||||
const numminutes = Math.floor((seconds % 3600) / 60);
|
const numminutes = Math.floor((seconds % 3600) / 60);
|
||||||
const numseconds = Math.floor((seconds % 3600) % 60);
|
const numseconds = Math.floor((seconds % 3600) % 60);
|
||||||
|
Loading…
Reference in New Issue
Block a user