fix: update

This commit is contained in:
Fine 2023-02-22 09:05:33 +08:00
parent 24dc753738
commit 5ffb2715cd
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ screenMap.set(sizeEnum.LG, screenEnum.LG);
screenMap.set(sizeEnum.XL, screenEnum.XL);
screenMap.set(sizeEnum.XXL, screenEnum.XXL);
export const RespFields: any = {
export const RespFields: { [key: string]: string } = {
readMetricsValues: `{
label
values {

View File

@ -399,7 +399,7 @@ export function aggregation(val: number, config: { calculation?: string }): numb
data = (val / 10000).toFixed(2);
break;
case Calculations.CPM5D:
data = (val / 100000).toFixed(2);
data = val / 100000 < 1 ? (val / 100000).toFixed(5) : (val / 100000).toFixed(2);
break;
case Calculations.ConvertSeconds:
data = dayjs(val * 1000).format("YYYY-MM-DD HH:mm:ss");