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",
|
ByteToKB = "byteToKB",
|
||||||
ByteToMB = "byteToMB",
|
ByteToMB = "byteToMB",
|
||||||
ByteToGB = "byteToGB",
|
ByteToGB = "byteToGB",
|
||||||
|
NanoToMill = "nanoToMill",
|
||||||
Apdex = "apdex",
|
Apdex = "apdex",
|
||||||
Precision = "precision",
|
Precision = "precision",
|
||||||
ConvertSeconds = "convertSeconds",
|
ConvertSeconds = "convertSeconds",
|
||||||
|
@ -411,6 +411,9 @@ export function aggregation(
|
|||||||
case Calculations.MsToS:
|
case Calculations.MsToS:
|
||||||
data = (val / 1000).toFixed(2);
|
data = (val / 1000).toFixed(2);
|
||||||
break;
|
break;
|
||||||
|
case Calculations.NanoToMill:
|
||||||
|
data = (val / 1000000).toFixed(4);
|
||||||
|
break;
|
||||||
case Calculations.SecondToDay:
|
case Calculations.SecondToDay:
|
||||||
data = (val / 86400).toFixed(2);
|
data = (val / 86400).toFixed(2);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user