mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
feat: add a calculation and update selectors param (#53)
This commit is contained in:
@@ -32,6 +32,7 @@ export enum Calculations {
|
||||
Precision = "precision",
|
||||
ConvertSeconds = "convertSeconds",
|
||||
ConvertMilliseconds = "convertMilliseconds",
|
||||
MsTos = "msTos",
|
||||
}
|
||||
export enum sizeEnum {
|
||||
XS = "XS",
|
||||
|
@@ -351,6 +351,9 @@ export function aggregation(val: number, config: any): number | string {
|
||||
case Calculations.Precision:
|
||||
data = data.toFixed(2);
|
||||
break;
|
||||
case Calculations.MsTos:
|
||||
data = val / 1000;
|
||||
break;
|
||||
default:
|
||||
data;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user