Skip to content

Commit 8b755ae

Browse files
acope-scGitHub Enterprise
authored andcommitted
Multiply CPU percent metric by 100
1 parent c97f696 commit 8b755ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/keydb_modstatsd/modmain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ void event_cron_handler(struct RedisModuleCtx *ctx, RedisModuleEvent eid, uint64
591591
+ (self_ru.ru_stime.tv_sec * 1000) + (self_ru.ru_stime.tv_usec / 1000);
592592

593593

594-
g_stats->gauge("cpu_load_perc", (double)(mscpuCur - s_mscpuLast) / ((curTime - lastTime)*1000), true /* prefixOnly */);
594+
g_stats->gauge("cpu_load_perc", ((double)(mscpuCur - s_mscpuLast) / ((curTime - lastTime)*1000))*100, true /* prefixOnly */);
595595
s_mscpuLast = mscpuCur;
596596
#endif
597597

0 commit comments

Comments
 (0)