浏览代码

expires value is missing in the output of dst blacklist view rpc command

Miklos Tirpak 18 年之前
父节点
当前提交
8779733eef
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dst_blacklist.c

+ 1 - 1
dst_blacklist.c

@@ -983,7 +983,7 @@ int h;
       rpc->printf(ctx, "{\n    protocol: %s", get_proto_name(e->proto));
       rpc->printf(ctx, "    ip: %s", ip_addr2a(&ip));
       rpc->printf(ctx, "    port: %d", e->port);
-      rpc->printf(ctx, "    expires in (s):", (s_ticks_t)(now-e->expire)<=0?
+      rpc->printf(ctx, "    expires in (s): %d", (s_ticks_t)(now-e->expire)<=0?
                        TICKS_TO_S(e->expire-now): -TICKS_TO_S(now-e->expire));
       rpc->printf(ctx, "    flags: %d\n}", e->flags);
     }