This program gets the status ntp and pps from ntpq and displays it in the window, coloring the state of the element. In addition, the application displays the current time and date on this system.
Also in the program there is a button that reloads ntp server by executing folowing command:
service ntp restart
- Green - offset < 0.1
- Yellow - offset >= 0.1
- Red - somethig wrong in status
- Green - pps is active
- Yellow - pps not active
- Red - somethig wrong in status
- Green - no errors in last 8 attempts
- Yellow - have errors in last 8 attempts
- Red - somethig wrong in status
When building the debug version, if the ntpq command fails, an attempt will be made to load the output of the command from the file ntpq_output.txt.
- Qt >v5.6