This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 4936f48  Restores traffic_top -s option to be in seconds
4936f48 is described below

commit 4936f48eff05758428fb899cc9235896696853b2
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Mon Feb 12 11:58:09 2018 -0700

    Restores traffic_top -s option to be in seconds
---
 cmd/traffic_top/traffic_top.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/traffic_top/traffic_top.cc b/cmd/traffic_top/traffic_top.cc
index 99996ff..f33de7c 100644
--- a/cmd/traffic_top/traffic_top.cc
+++ b/cmd/traffic_top/traffic_top.cc
@@ -393,7 +393,7 @@ main(int argc, const char **argv)
   static const char USAGE[] = "Usage: traffic_top [-s seconds]";
 #endif
 
-  int sleep_time = 6000;
+  int sleep_time = 6; // In seconds
   bool absolute  = false;
   string url;
 
@@ -485,7 +485,7 @@ main(int argc, const char **argv)
 
     curs_set(0);
     refresh();
-    timeout(sleep_time);
+    timeout(sleep_time * 1000);
 
     int x = getch();
     switch (x) {

-- 
To stop receiving notification emails like this one, please contact
zw...@apache.org.

Reply via email to