add percentile information if available

This commit is contained in:
2021-04-02 18:29:18 +02:00
parent f56744eb6b
commit a1b4c7006d
15 changed files with 322 additions and 168 deletions

View File

@@ -9,6 +9,14 @@ export class UtilService {
constructor() {
}
format(value: number, type: string) {
if (type == "time"){
return this.formatMs(value);
} else {
return ""+value;
}
}
formatMs(valueInMs):string {
const ms = Math.floor(valueInMs % 1000);
const s = Math.floor((valueInMs / 1000) % 60);