Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/blacklist/bin fix remaining time.



details:   https://anonhg.NetBSD.org/src/rev/d1e5aacbddac
branches:  trunk
changeset: 805940:d1e5aacbddac
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 24 06:20:21 2015 +0000

description:
fix remaining time.

diffstat:

 external/bsd/blacklist/bin/blacklistctl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 13a30ba03931 -r d1e5aacbddac external/bsd/blacklist/bin/blacklistctl.c
--- a/external/bsd/blacklist/bin/blacklistctl.c Sat Jan 24 06:05:08 2015 +0000
+++ b/external/bsd/blacklist/bin/blacklistctl.c Sat Jan 24 06:20:21 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: blacklistctl.c,v 1.12 2015/01/24 06:05:08 christos Exp $       */
+/*     $NetBSD: blacklistctl.c,v 1.13 2015/01/24 06:20:21 christos Exp $       */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: blacklistctl.c,v 1.12 2015/01/24 06:05:08 christos Exp $");
+__RCSID("$NetBSD: blacklistctl.c,v 1.13 2015/01/24 06:20:21 christos Exp $");
 
 #include <stdio.h>
 #include <time.h>
@@ -115,7 +115,7 @@
                printf("%15.15s:%d\t", buf, c.c_port);
                if (remain)
                        fmtydhms(buf, sizeof(buf),
-                           (ts.tv_sec - dbi.last) - c.c_duration);
+                           c.c_duration - (ts.tv_sec - dbi.last));
                else
                        fmttime(buf, sizeof(buf), dbi.last);
                printf("%s\t%d/%d\t%-s\n", dbi.id, dbi.count, c.c_nfail, buf);



Home | Main Index | Thread Index | Old Index