From fb3d10a8bdec53acf5d5f0553f4493ccac4aa15e Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Tue, 12 Nov 2024 01:29:52 +0800 Subject: [PATCH] Do not expand GPU_TIME field width The GPU_TIME field is now fixed width, and thus there is no need to call Row_updateFieldWidth(). Signed-off-by: Kang-Che Sung --- linux/GPU.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/linux/GPU.c b/linux/GPU.c index a4af92072..45490c00b 100644 --- a/linux/GPU.c +++ b/linux/GPU.c @@ -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;