From: Dan Mick Date: Tue, 18 Apr 2017 22:57:24 +0000 (-0700) Subject: pybind/ceph_daemon.py: reprint headers as soon as they disappear X-Git-Tag: v12.0.3~71^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9d9cd5d25419797b7ddb72cca9da50a81e59faae;p=ceph.git pybind/ceph_daemon.py: reprint headers as soon as they disappear Signed-off-by: Dan Mick --- diff --git a/src/pybind/ceph_daemon.py b/src/pybind/ceph_daemon.py index 2f459c5a0a3b..f91012568f48 100755 --- a/src/pybind/ceph_daemon.py +++ b/src/pybind/ceph_daemon.py @@ -331,7 +331,7 @@ class DaemonWatcher(object): signal(SIGWINCH, self._handle_sigwinch) while True: dump = json.loads(admin_socket(self.asok_path, ["perf", "dump"]).decode('utf-8')) - if rows_since_header > self.termsize.rows - 2: + if rows_since_header >= self.termsize.rows - 2: self._print_headers(ostr) rows_since_header = 0 self._print_vals(ostr, dump, last_dump)