bugfix: 远端测试bug

This commit is contained in:
1iaan
2026-02-02 07:40:01 +00:00
parent 6d1a50cf88
commit c1458a6693
7 changed files with 13 additions and 12 deletions

View File

@@ -274,7 +274,9 @@ int main(int argc, char **argv) {
redisContext *c = redisConnect(host, port);
if (!c || c->err) die(c, "connect failed");
printf("Connected to %s:%d\n", host, port);
redisReply *reply = redisCommand(c, "MEMPRINT");
printf("Connected to %s:%d, %lld\n", host, port, reply->integer);
if(mode == 0){
save(c);