blob: 6dbf5297690d886810af02e3f45e0e9b618031a8 (
plain)
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
|
--- ./compat/adjfreq_linux.c.orig
+++ ./compat/adjfreq_linux.c
@@ -37,20 +37,20 @@
txc.modes = ADJ_FREQUENCY;
txc.freq = *freq / 1e3 / (1LL << 16);
- if ((ntp_adjtime(&txc)) == -1)
- log_warn("ntp_adjtime (2) failed");
+ if ((adjtimex(&txc)) == -1)
+ log_warn("adjtimex (2) failed");
- log_debug("ntp_adjtime adjusted frequency by %fppm",
+ log_debug("adjtimex adjusted frequency by %fppm",
((txc.freq * 1e3) * (1LL<<16) / 1e3 / (1LL << 32)));
}
if (oldfreq != NULL) {
txc.modes = 0;
- if ((ntp_adjtime(&txc)) == -1) {
- log_warn("ntp_adjtime (1) failed");
+ if ((adjtimex(&txc)) == -1) {
+ log_warn("adjtimex (1) failed");
return -1;
}
newfreq = (txc.freq * 1e3) * (1LL<<16);
- log_debug("ntp_adjtime returns frequency of %fppm",
+ log_debug("adjtimex returns frequency of %fppm",
newfreq / 1e3 / (1LL << 32));
*oldfreq = newfreq;
}
|