[Git][NTPsec/ntpsec][master] 2 commits: Grammar

Matt Selsky gitlab at mg.gitlab.com
Mon Sep 11 00:39:01 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
5cb6de03 by Matt Selsky at 2017-09-11T00:29:44+00:00
Grammar

- - - - -
f31d1ef9 by Matt Selsky at 2017-09-11T00:31:10+00:00
Fix spelling of "received"

- - - - -


3 changed files:

- libntp/prettydate.c
- pylib/packet.py
- tests/pylib/test_packet.py


Changes:

=====================================
libntp/prettydate.c
=====================================
--- a/libntp/prettydate.c
+++ b/libntp/prettydate.c
@@ -90,7 +90,7 @@ get_struct_tm(
 	 * stamps < 0.
 	 *
 	 * ESR, 2017: Using localtime(3) for logging at all is bogus -
-	 * in particular bad for reproducibility.
+	 * in particular, it is bad for reproducibility.
 	 */
 	while ((tm = gmtime_r(&ts, tmbuf)) == NULL)
 		if (ts < 0) {


=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -463,7 +463,7 @@ class SyncPacket(Packet):
     def posix_to_ntp(t):
         "Scale from POSIX time to NTP time"
         # Note: assumes we're in the same NTP era as the transmitter...
-        # This recieves floats, can't use shifts
+        # This receives floats, can't use shifts
         return int((t + SyncPacket.UNIX_EPOCH) * 2**32)
 
     def posixize(self):


=====================================
tests/pylib/test_packet.py
=====================================
--- a/tests/pylib/test_packet.py
+++ b/tests/pylib/test_packet.py
@@ -147,7 +147,7 @@ class TestSyncPacket(unittest.TestCase):
         self.assertEqual(cls.mac, '')
         self.assertEqual(cls.hostname, None)
         self.assertEqual(cls.resolved, None)
-        # In theory should test cls.recieved here, but it is assigned to time()
+        # In theory should test cls.received here, but it is assigned to time()
         self.assertEqual(cls.trusted, True)
         self.assertEqual(cls.rescaled, False)
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/822dfda437f064a36d8796bba33aaaf9ba8faad8...f31d1ef93abf112d12a3707e8ace6be9d12f6555

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/822dfda437f064a36d8796bba33aaaf9ba8faad8...f31d1ef93abf112d12a3707e8ace6be9d12f6555
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/20170911/17d56454/attachment.html>


More information about the vc mailing list