Skip to content

Commit

Permalink
cpu_usage2: fix build failures on clang/llvm
Browse files Browse the repository at this point in the history
Remove a non-standard suffix on a floating-point literal, causing build failures on clang/LLVM

fixes vivien#504
  • Loading branch information
COLAMAroro authored Sep 24, 2023
1 parent fc2c105 commit 230f42f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu_usage2/cpu_usage2.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ int main(int argc, char *argv[])
sleep(t);
total = get_usage(&used);

display(label, 100.0D * (used - old_used) / (total - old_total),
display(label, 100.0 * (used - old_used) / (total - old_total),
warning, critical, decimals);
fflush(stdout);
old_total = total;
Expand Down

0 comments on commit 230f42f

Please sign in to comment.