File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1052,7 +1052,7 @@ void RAI_moduleInfoFunc(RedisModuleInfoCtx *ctx, int for_crash_report) {
1052
1052
struct timespec ts ;
1053
1053
clockid_t cid ;
1054
1054
sds queue_used_cpu_total = sdscatprintf (
1055
- sdsempty (), "queue_%s_bthread_# %d_used_cpu_total" , queue_name , i + 1 );
1055
+ sdsempty (), "queue_%s_bthread_n %d_used_cpu_total" , queue_name , i + 1 );
1056
1056
sds bthread_used_cpu_total = sdsempty ();
1057
1057
#if (!defined(_POSIX_C_SOURCE ) && !defined(_XOPEN_SOURCE )) || defined(_DARWIN_C_SOURCE ) || \
1058
1058
defined(__cplusplus )
@@ -1068,7 +1068,7 @@ void RAI_moduleInfoFunc(RedisModuleInfoCtx *ctx, int for_crash_report) {
1068
1068
} else {
1069
1069
bthread_used_cpu_total =
1070
1070
sdscatprintf (bthread_used_cpu_total , "%ld.%06ld" , (long )ts .tv_sec ,
1071
- (long )(ts .tv_nsec / 1000000 ));
1071
+ (long )(ts .tv_nsec / 1000 ));
1072
1072
}
1073
1073
}
1074
1074
RedisModule_InfoAddFieldCString (ctx , queue_used_cpu_total , bthread_used_cpu_total );
You can’t perform that action at this time.
0 commit comments