add percentile information if available
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user