From dea321a12445f3d02c71bd17b6a2d482a3dac3cc Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Tue, 9 Mar 2021 15:11:36 +0300 Subject: [PATCH] Fix trendValue(sum) function for API queries, fixes #935 --- src/datasource-zabbix/responseHandler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/datasource-zabbix/responseHandler.ts b/src/datasource-zabbix/responseHandler.ts index 5cb75bebb..4abb3e81c 100644 --- a/src/datasource-zabbix/responseHandler.ts +++ b/src/datasource-zabbix/responseHandler.ts @@ -416,10 +416,10 @@ function convertTrendPoint(valueType, point) { value = point.value_avg; break; case "sum": - value = point.value_sum; + value = point.value_avg * point.num; break; case "count": - value = point.value_count; + value = point.num; break; default: value = point.value_avg;