Skip to content

Commit

Permalink
Normalizing of CPU usage values by using number of online CPUs - max …
Browse files Browse the repository at this point in the history
…should be 100%
  • Loading branch information
jangaraj committed Mar 24, 2015
1 parent 606e4f4 commit c53765b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/zabbix_module_docker/zabbix_module_docker.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ int zbx_module_docker_cpu(AGENT_REQUEST *request, AGENT_RESULT *result)

char line[MAX_STRING_LEN];
char *metric2 = malloc(strlen(metric)+1);
zbx_uint64_t cpu_num;
memcpy(metric2, metric, strlen(metric));
memcpy(metric2 + strlen(metric), " ", 2);
zbx_uint64_t value = 0;
Expand Down

0 comments on commit c53765b

Please sign in to comment.