Skip to content

Commit

Permalink
Do not expand GPU_TIME field width
Browse files Browse the repository at this point in the history
The GPU_TIME field is now fixed width, and thus there is no need to
call Row_updateFieldWidth().

Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
  • Loading branch information
Explorer09 authored and BenBE committed Dec 16, 2024
1 parent 4ba1988 commit fb3d10a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions linux/GPU.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ void GPU_readProcessData(LinuxProcessTable* lpt, LinuxProcess* lp, openat_arg_t
unsigned long long int gputimeDelta;
uint64_t monotonicTimeDelta;

Row_updateFieldWidth(GPU_TIME, ceil(log10(new_gpu_time)));

gputimeDelta = saturatingSub(new_gpu_time, lp->gpu_time);
monotonicTimeDelta = host->monotonicMs - host->prevMonotonicMs;
lp->gpu_percent = 100.0F * gputimeDelta / (1000 * 1000) / monotonicTimeDelta;
Expand Down

0 comments on commit fb3d10a

Please sign in to comment.