mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Zero-pad timestamps in MONITOR output
Original report and fix: http://code.google.com/p/redis/issues/detail?id=404
This commit is contained in:
@@ -88,7 +88,7 @@ void replicationFeedMonitors(list *monitors, int dictid, robj **argv, int argc)
|
||||
struct timeval tv;
|
||||
|
||||
gettimeofday(&tv,NULL);
|
||||
cmdrepr = sdscatprintf(cmdrepr,"%ld.%ld ",(long)tv.tv_sec,(long)tv.tv_usec);
|
||||
cmdrepr = sdscatprintf(cmdrepr,"%ld.%06ld ",(long)tv.tv_sec,(long)tv.tv_usec);
|
||||
if (dictid != 0) cmdrepr = sdscatprintf(cmdrepr,"(db %d) ", dictid);
|
||||
|
||||
for (j = 0; j < argc; j++) {
|
||||
|
||||
Reference in New Issue
Block a user