[feat] add NanoToMill Calculations

This commit is contained in:
easonyipj 2022-09-18 01:42:55 +08:00
parent 49bc349064
commit 6043efde46
2 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,7 @@ export enum Calculations {
ByteToKB = "byteToKB",
ByteToMB = "byteToMB",
ByteToGB = "byteToGB",
NanoToMill = "nanoToMill",
Apdex = "apdex",
Precision = "precision",
ConvertSeconds = "convertSeconds",

View File

@ -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;