calc_tickadj(1calc_tickadjman)
π NAME π
okay so bestie, this is calc_tickadj from the 1calc_tickadjman manual β and itβs literally here to calculate the optimal value for tick given an ntp drift file. slay. β¨
π¦ SYNOPSIS π¦
calc_tickadj [-flags] [-flag [value]] [--option-name[[=| ]value]]
All arguments must be options. no random extra bestie arguments, okay? π
πΈ DESCRIPTION πΈ
The calc_tickadj script uses the ntp drift file you provide to generate the optimal tick value. Generally, ntpd can do a better job when the drift value is the smallest possible number. lowkey iconic behavior.
Example output:
$ ./calc_tickadj
81.699 (drift)
9999 usec; 9999779 nsec
$ cat /etc/ntp/drift
-23.159
So hereβs what that means, bestie: if tick on that box is 10,000, then by making the value 9999 weβll shift the box from its current drift of -23.159 to a drift of 81.699, and in doing so weβll speed the clock up a little every second instead of slowing the clock down a little. the way that works is honestly kind of iconic. π
If tick on that box is 10,000,000, then by setting it to 9999779 the drift value will be somewhere around 0.0. periodt.
calc_tickadj tries to determine the tick value by using the tickadj program from the ntp package. If this doesnβt work, you can specify the current tick manually on the command line. no cap, thatβs the backup plan. π
β¨ OPTIONS β¨
-d string,--drift-file=stringβ the ntp drift file to use. The default string for this option is/etc/ntp/drift. Use the specified drift file for calculations. π-t number,--tick=numberβ the tick value of this host. This option takes an integer number as its argument. The current tick which to adjustment will be calculated. π₯-?,--helpβ display usage information and exit. your classic βhelp me bestieβ button. π«Ά-!,--more-helpβ pass the extended usage information through a pager. bougie help behavior, honestly. π-v [{v|c|n --version [{v|c|n}]}]β output version of program and exit. The default mode isv, a simple version. Thecmode will print copyright information andnwill print the full copyright notice. π
π EXIT STATUS π
One of the following exit values will be returned:
0(EXIT_SUCCESS) β successful program execution. we love a happy ending. π1(EXIT_FAILURE) β the operation failed or the command syntax was not valid. oop. π70(EX_SOFTWARE) βliboptshad an internal operational error. Please report it toautogen-users@lists.sourceforge.net. Thank you. fr fr, they mean it. π
π§ NOTES π§
This manual page was AutoGen-erated from the calc_tickadj option definitions. yes bestie, AutoGen-erated, thatβs the official vibe. β¨
okay bye bestie, this little manual moment comes from ntp (4.2.8p18) and is dated 25 May 2024 β take care and may your tick always be optimal π«Άπ
π¦ where this page comes from
- arch rolling: ntp 4.2.8.p18-6 Β· custom
- nixos 26.05: ntp 4.2.8p18
- nixpkgs unstable: ntp 4.2.8p18
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms