[Git][NTPsec/ntpsec][master] ntpmon: fix overflow on version line

Gary E. Miller gitlab at mg.gitlab.com
Wed Aug 9 01:56:26 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
f1f4fb7f by Gary E. Miller at 2017-08-08T18:56:00-07:00
ntpmon: fix overflow on version line

- - - - -


1 changed file:

- ntpclients/ntpmon


Changes:

=====================================
ntpclients/ntpmon
=====================================
--- a/ntpclients/ntpmon
+++ b/ntpclients/ntpmon
@@ -79,7 +79,7 @@ def statline(_peerlist, _mrulist, nyquist):
                      ntp.util.PeerSummary.prettyinterval(nyquist))
     else:
         trailer = ""
-    spacer = (peer_report.termwidth - len(leader) - len(trailer)) * " "
+    spacer = ((peer_report.termwidth - 1) - len(leader) - len(trailer)) * " "
     return leader + spacer + trailer
 
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/f1f4fb7f4ffd9738391044541f23c4d581a379d5

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/f1f4fb7f4ffd9738391044541f23c4d581a379d5
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170809/3a13de2b/attachment.html>


More information about the vc mailing list