-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
74 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
ntpmon (3.0.8-1) focal; urgency=medium | ||
|
||
* New upstream release. | ||
|
||
-- Paul Gear <[email protected]> Sun, 07 Jan 2024 13:33:33 +1000 | ||
|
||
ntpmon (3.0.7-1) focal; urgency=medium | ||
|
||
* New upstream release. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
# and bash. | ||
MAJOR="3" | ||
MINOR="0" | ||
PATCH="7" | ||
PATCH="8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
# Copyright: (c) 2023 Paul D. Gear | ||
# License: AGPLv3 <http://www.gnu.org/licenses/agpl.html> | ||
|
||
import time | ||
import pytest | ||
|
||
import line_protocol | ||
|
@@ -28,8 +29,10 @@ def test_timestamp_to_line_protocol() -> None: | |
|
||
|
||
def test_to_line_protocol() -> None: | ||
now_ns = time.time_ns() | ||
metrics = { | ||
"associd": 0, | ||
"timestamp_ns": now_ns, | ||
"frequency": -11.673, | ||
"leap": False, | ||
"offset": +0.0000145826, | ||
|
@@ -50,7 +53,7 @@ def test_to_line_protocol() -> None: | |
== "ntpmon,hostname=ntp1,processor=x86_64,refid=100.66.246.50,reftime=e93a0505.8336edfd,system=Linux/5.10.0-26-amd64," | ||
"version=ntpd\\ [email protected]\\ Wed\\ Sep\\ 23\\ 11:46:38\\ UTC\\ 2020\\ (1) " | ||
"frequency=-11.673,offset=1.45826e-05,rootdelay=1.026,rootdisp=8.218," | ||
"sys_jitter=0.082849,associd=0i,precision=-23i,stratum=2i,leap=0i,test=1i" | ||
f"sys_jitter=0.082849,associd=0i,precision=-23i,stratum=2i,leap=0i,test=1i {now_ns}" | ||
) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters