calc_tickadj(1calc_tickadjman)

πŸ“¦
version 4.2.8.p18 Β· 3 versions
, in arch rolling, nixos 26.05, nixpkgs unstable

πŸ’– 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 is v, a simple version. The c mode will print copyright information and n will 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) β€” libopts had an internal operational error. Please report it to autogen-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