Skip to content

Commit

Permalink
humanTimeUnit 28g
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Jan 8, 2025
1 parent 8f2c11a commit 14cb1d1
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 @@ -57,7 +57,7 @@ static int humanTimeUnit(char* buffer, size_t size, unsigned long long totalNano
unsigned long long totalSeconds = value / 10000;
if (totalSeconds < 60) {
int width = 4;
unsigned int seconds = (unsigned int)(value / 10000);
unsigned int seconds = (unsigned int)totalSeconds;
unsigned int fraction = (unsigned int)(value % 10000);
for (unsigned int limit = 1; seconds >= limit; limit *= 10) {
width--;
Expand Down

0 comments on commit 14cb1d1

Please sign in to comment.