|
@@ -24,8 +24,8 @@ LOG_MAX_LINES=10000
|
|
|
LOG_TRIM_TO_BYTES=0 # $((LOG_MAX_SIZE_BYTES / 2))
|
|
LOG_TRIM_TO_BYTES=0 # $((LOG_MAX_SIZE_BYTES / 2))
|
|
|
LOG_TRIM_TO_LINES=9000
|
|
LOG_TRIM_TO_LINES=9000
|
|
|
|
|
|
|
|
-AUTO_REFRESH_SECONDS=0 ## Auto-refresh interval in seconds (0 = disabled, e.g., 300 for 5 minutes)
|
|
|
|
|
-GITHUB_REPO_LINK_SHOW="no" ## You can display the link to the repo 'chrony-stats' in the HTML footer | Not required | Default: no
|
|
|
|
|
|
|
+AUTO_REFRESH_SECONDS=300 ## Auto-refresh interval in seconds (0 = disabled, e.g., 300 for 5 minutes)
|
|
|
|
|
+GITHUB_REPO_LINK_SHOW="yes" ## You can display the link to the repo 'chrony-stats' in the HTML footer | Not required | Default: no
|
|
|
|
|
|
|
|
|
|
|
|
|
###### Advanced Configuration ######
|
|
###### Advanced Configuration ######
|
|
@@ -34,7 +34,7 @@ CHRONY_ALLOW_DNS_LOOKUP="yes" ## Yes allow DNS reverse lookups. No to prevent s
|
|
|
DISPLAY_PRESET="default" # Preset for large screens. Options: default | 2k | 4k
|
|
DISPLAY_PRESET="default" # Preset for large screens. Options: default | 2k | 4k
|
|
|
|
|
|
|
|
TIMEOUT_SECONDS=5
|
|
TIMEOUT_SECONDS=5
|
|
|
-SERVER_STATS_UPPER_LIMIT=100000 ## When chrony restarts, it generate abnormally high values (e.g., 12M) | This filters out values above the threshold
|
|
|
|
|
|
|
+SERVER_STATS_UPPER_LIMIT=250000 ## When chrony restarts, it generate abnormally high values (e.g., 12M) | This filters out values above the threshold
|
|
|
##############################################################
|
|
##############################################################
|
|
|
|
|
|
|
|
WIDTH=800 ## These graph sizes are changing with DISPLAY_PRESET
|
|
WIDTH=800 ## These graph sizes are changing with DISPLAY_PRESET
|
|
@@ -766,6 +766,7 @@ EOF
|
|
|
if [[ "$GITHUB_REPO_LINK_SHOW" == "yes" ]]; then
|
|
if [[ "$GITHUB_REPO_LINK_SHOW" == "yes" ]]; then
|
|
|
cat >>"$OUTPUT_DIR/$HTML_FILENAME" <<EOF
|
|
cat >>"$OUTPUT_DIR/$HTML_FILENAME" <<EOF
|
|
|
<p>Made with ❤️ by TheHuman00 | <a href="https://github.com/TheHuman00/chrony-stats" target="_blank">View on GitHub</a></p>
|
|
<p>Made with ❤️ by TheHuman00 | <a href="https://github.com/TheHuman00/chrony-stats" target="_blank">View on GitHub</a></p>
|
|
|
|
|
+ <p>Modified from original script by Medowar<a href="https://www.medowar.de>" target="_blank"> (https://www.medowar.de)</a></p>
|
|
|
EOF
|
|
EOF
|
|
|
fi
|
|
fi
|
|
|
cat >>"$OUTPUT_DIR/$HTML_FILENAME" <<EOF
|
|
cat >>"$OUTPUT_DIR/$HTML_FILENAME" <<EOF
|