Skip to content

Commit

Permalink
humanTimeUnit 27d
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Jan 8, 2025
1 parent 37aa07e commit 066e1c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linux/GPUMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ static int humanTimeUnit(char* buffer, size_t size, unsigned long long int value

if (value < 600000) {
int width = 4;
unsigned int seconds = (unsigned int)((uint32_t)value / 10000);
unsigned int fraction = (unsigned int)((uint32_t)value % 10000);
unsigned int seconds = (unsigned int)(value / 10000);
unsigned int fraction = (unsigned int)(value % 10000);
for (unsigned int limit = 1; seconds >= limit; limit *= 10) {
width--;
fraction /= 10;
Expand Down

0 comments on commit 066e1c7

Please sign in to comment.