-
Notifications
You must be signed in to change notification settings - Fork 0
/
2-patch_ntpctl-sensors-tolowercase.patch
54 lines (49 loc) · 1.66 KB
/
2-patch_ntpctl-sensors-tolowercase.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
From: Pekka Helenius <[email protected]>
Date: Tue, 04 Aug 2020 01:52:10 +0300
Subject: Set 'Sensors' to lowercase in ntpctl settings
--- a/src/ntpd.c 2020-08-03 23:31:10.898621932 +0300
+++ b/src/ntpd.c 2020-08-03 23:30:51.351955245 +0300
@@ -76,7 +76,7 @@ extern u_int constraint_cnt;
const char *showopt;
static const char *ctl_showopt_list[] = {
- "peers", "Sensors", "status", "all", NULL
+ "peers", "sensors", "status", "all", NULL
};
void
@@ -115,7 +115,7 @@ usage(void)
if (strcmp(__progname, "ntpctl") == 0)
fprintf(stderr,
- "usage: ntpctl -s all | peers | Sensors | status\n");
+ "usage: ntpctl -s all | peers | sensors | status\n");
else
fprintf(stderr, "usage: %s [-dnv] [-f file] [-p file]\n",
__progname);
--- a/src/ntpctl.8 2020-07-31 23:00:50.329054281 +0300
+++ b/src/ntpctl.8 2020-08-01 00:35:22.158056263 +0300
@@ -22,7 +22,7 @@
.Nd control the Network Time Protocol daemon
.Sh SYNOPSIS
.Nm ntpctl
-.Fl s Cm all | peers | Sensors | status
+.Fl s Cm all | peers | sensors | status
.Sh DESCRIPTION
The
.Nm
@@ -32,7 +32,7 @@ daemon.
.Pp
The options are as follows:
.Bl -tag -width "-s modifierX"
-.It Fl s Cm all | peers | Sensors | status
+.It Fl s Cm all | peers | sensors | status
Used to display information about the running daemon.
Keywords may be abbreviated.
.Pp
@@ -46,7 +46,7 @@ in seconds, and offset, network delay an
When the system clock is synced to a peer, an asterisk
is displayed to the left of the weight column for that peer.
.Pp
-.Cm Sensors
+.Cm sensors
shows the following information about each sensor: weight, sensor "good"
status, stratum, and offset and the configured correction in
milliseconds.