Skip to content

Commit

Permalink
Fix trendValue(sum) function for API queries, fixes #935
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderzobnin committed Mar 9, 2021
1 parent e37bf01 commit dea321a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/datasource-zabbix/responseHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dea321a

Please sign in to comment.