mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 00:37:33 +00:00
[feat] add NanoToMill Calculations
This commit is contained in:
parent
49bc349064
commit
6043efde46
@ -28,6 +28,7 @@ export enum Calculations {
|
||||
ByteToKB = "byteToKB",
|
||||
ByteToMB = "byteToMB",
|
||||
ByteToGB = "byteToGB",
|
||||
NanoToMill = "nanoToMill",
|
||||
Apdex = "apdex",
|
||||
Precision = "precision",
|
||||
ConvertSeconds = "convertSeconds",
|
||||
|
@ -411,6 +411,9 @@ export function aggregation(
|
||||
case Calculations.MsToS:
|
||||
data = (val / 1000).toFixed(2);
|
||||
break;
|
||||
case Calculations.NanoToMill:
|
||||
data = (val / 1000000).toFixed(4);
|
||||
break;
|
||||
case Calculations.SecondToDay:
|
||||
data = (val / 86400).toFixed(2);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user