Parcourir la source

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

Miklos Tirpak il y a 18 ans
Parent
commit
8779733eef
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);
     }