[Git][NTPsec/ntpsec][master] Cleanup comments in ntpheat including name change

Eric S. Raymond gitlab at mg.gitlab.com
Sat Mar 18 08:38:39 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
253fdd83 by Kenneth Finnegan at 2017-03-18T01:22:59-07:00
Cleanup comments in ntpheat including name change

Updated the code comments and print statements to refer it itself as
ntpheat.

Also fixed some typos/English in the comments.

- - - - -


1 changed file:

- contrib/ntpheat


Changes:

=====================================
contrib/ntpheat
=====================================
--- a/contrib/ntpheat
+++ b/contrib/ntpheat
@@ -5,15 +5,15 @@
 # Wrap your RasPi in bubble wrap.  Then run makeheat in the background.
 # It will try to stabilize the CPU temperature at 60C.
 
-# sometimes once copy of makeheat can use 100% of one CPU and
+# sometimes one copy of ntpheat can use 100% of one CPU and
 # still not heat up your RasPi as much as you want.  The temptation
-# is to add more insulation to your RasPi, but then will overshoot
+# is to add more insulation to your RasPi, but then it will overshoot
 # your target temperature if your load factor goes high.
 #
-# The solution is to run more than one copy of makeheat.  This is
+# The solution is to run more than one copy of ntpheat.  This is
 # easy to do with the -c option.
 #
-# to run 3 copies of makeheat; makeheat -c 3
+# to run 3 copies of ntpheat; ntpheat -c 3
 
 import argparse
 import hashlib
@@ -24,7 +24,7 @@ import time
 try:
     import ntp.util
 except ImportError as e:
-    sys.stderr.write("makeheat: can't find Python NTP modules "
+    sys.stderr.write("ntpheat: can't find Python NTP modules "
                      "-- check PYTHONPATH.\n%s\n" % e)
     sys.exit(1)
 
@@ -50,7 +50,7 @@ parser.add_argument('-w', '--wait',
                     type=float)
 parser.add_argument('-V', '--version',
                     action="version",
-                    version="makeheat %s" % ntp.util.stdversion())
+                    version="ntpheat %s" % ntp.util.stdversion())
 args = parser.parse_args()
 
 args.copies[0] -= 1
@@ -79,7 +79,7 @@ while True:
     else:
         cnt = max_cnt
         # cools off slower than it heats up.
-        # undocumented Pythong 'feature', no sleep less than 1 milli Sec
+        # undocumented Python 'feature', no sleep less than 1 milli Sec
         sleep = args.wait[0] * 10.0 * -delta
         if 0.001 > sleep:
             sleep = 0.001



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/253fdd8333a107d30ceea1351b387a8f45d74270
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170318/92fdbd80/attachment.html>


More information about the vc mailing list