{
    "mode": "man",
    "parameter": "calc_tickadj",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/calc_tickadj/1/json",
    "generated": "2026-05-30T05:15:14Z",
    "synopsis": "calctickadj [-flags] [-flag [value]] [--option-name[[=| ]value]]\nAll arguments must be options.",
    "sections": {
        "NAME": {
            "content": "calctickadj — Calculates optimal value for tick given ntp drift file.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "calctickadj [-flags] [-flag [value]] [--option-name[[=| ]value]]\n\nAll arguments must be options.\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The calctickadj script uses provided ntp drift file to generate optimal tick value. Generally,\nntpd can do better job if the drift value is the smallest possible number.\n\nThe example output of\n\n$ ./calctickadj\n81.699 (drift)\n9999 usec; 9999779 nsec\n$ cat /etc/ntp/drift\n-23.159\n\nmeans the following. If tick on that box is 10,000, by making the value 9999 we'll shift the\nbox from its current drift of -23.159 to a drift of 81.699, and in doing so we'll speed the\nclock up a little every second instead of slowing the clock down a little.\n\nIf 'tick' on that box is 10,000,000 then by setting it to 9999779 the drift value will be some‐\nwhere around 0.0.\n\ncalctickadj tries to determine the the tick value by using tickadj program from ntp package.\nIf this doesn't work you can specify current tick manually on command line.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-d --drift-file",
                    "content": "Ntp drift file to use.  The default string for this option is:\n/etc/ntp/drift\n\nUse the specified drift file for calculations\n",
                    "flag": "-d",
                    "long": "--drift-file"
                },
                {
                    "name": "-t --tick",
                    "content": "Tick value of this host.  This option takes an integer number as its argument.\n\nThe current tick which to adjustment will be calculated\n\n-?, --help\nDisplay usage information and exit.\n\n-!, --more-help\nPass the extended usage information through a pager.\n",
                    "flag": "-t",
                    "long": "--tick"
                },
                {
                    "name": "-v --version",
                    "content": "Output version of program and exit.  The default mode is `v', a simple version.  The\n`c' mode will print copyright information and `n' will print the full copyright notice.\n",
                    "flag": "-v",
                    "long": "--version"
                }
            ]
        },
        "EXIT STATUS": {
            "content": "One of the following exit values will be returned:\n\n0  (EXITSUCCESS)\nSuccessful program execution.\n\n1  (EXITFAILURE)\nThe operation failed or the command syntax was not valid.\n\n70  (EXSOFTWARE)\nlibopts had an internal operational error.  Please report it to auto‐\ngen-users@lists.sourceforge.net.  Thank you.\n",
            "subsections": []
        },
        "NOTES": {
            "content": "This manual page was AutoGen-erated from the calctickadj option definitions.\n\nBSD                              June 23 2020                              BSD",
            "subsections": []
        }
    },
    "summary": "calctickadj — Calculates optimal value for tick given ntp drift file.",
    "flags": [
        {
            "flag": "-d",
            "long": "--drift-file",
            "arg": null,
            "description": "Ntp drift file to use. The default string for this option is: /etc/ntp/drift Use the specified drift file for calculations"
        },
        {
            "flag": "-t",
            "long": "--tick",
            "arg": null,
            "description": "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. -!, --more-help Pass the extended usage information through a pager."
        },
        {
            "flag": "-v",
            "long": "--version",
            "arg": null,
            "description": "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."
        }
    ],
    "examples": [],
    "see_also": []
}