Skip to content

Commit

Permalink
humanTimeUnit 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Dec 22, 2024
1 parent c8b1248 commit a70a155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/GPUMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static int humanTimeUnit(char* buffer, size_t size, unsigned long long int value
return xSnprintf(buffer, size, "%5ud", (unsigned int)value);

if (value < 3650)
return xSnprintf(buffer, size, "%lluy%03llud", value / 365, value % 365);
return xSnprintf(buffer, size, "%uy%03ud", (unsigned int)value / 365, (unsigned int)value % 365);

value /= 365; // years (ignore leap years)

Expand Down

0 comments on commit a70a155

Please sign in to comment.