conncheck: fix timer remainder return value
authorFabrice Bellet <fabrice@bellet.info>
Wed, 5 Feb 2020 21:04:16 +0000 (21:04 +0000)
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>
Wed, 5 Feb 2020 21:04:16 +0000 (21:04 +0000)
We show the timer remainder in milliseconds.

agent/conncheck.c

index 215125b..0297384 100644 (file)
@@ -85,7 +85,7 @@ static gint64 priv_timer_remainder (gint64 timer, gint64 now)
   if (now >= timer)
     return 0;
 
-  return timer - now;
+  return (timer - now) / 1000;
 }
 
 static gchar