Skip to content

Commit

Permalink
Fix declaration warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpatki committed Mar 7, 2024
1 parent 57de6c1 commit 27e6da4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/variorum/variorum.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,11 +1108,9 @@ int variorum_get_node_utilization_json(char **get_util_obj_str)
char hostname[1024];
struct timeval tv;
uint64_t ts;
char *gpu_util_str = NULL;
gethostname(hostname, 1024);
gettimeofday(&tv, NULL);
ts = tv.tv_sec * (uint64_t)1000000 + tv.tv_usec;
int ret;
char str[100];
const char d[2] = " ";
char *token, *s, *p;
Expand Down Expand Up @@ -1142,6 +1140,8 @@ int variorum_get_node_utilization_json(char **get_util_obj_str)


#if defined(VARIORUM_WITH_NVIDIA_GPU) || defined(VARIORUM_WITH_AMD_GPU) || defined(VARIORUM_WITH_INTEL_GPU)
int ret;
char *gpu_util_str = NULL;
// get gpu utilization
ret = variorum_get_gpu_utilization_json(&gpu_util_str);
if (ret != 0)
Expand Down

0 comments on commit 27e6da4

Please sign in to comment.