Browse Source

adjusting default values

Medowar 1 tháng trước cách đây
mục cha
commit
6241b20df9
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      chrony-network-stats.sh

+ 4 - 3
chrony-network-stats.sh

@@ -24,8 +24,8 @@ LOG_MAX_LINES=10000
 LOG_TRIM_TO_BYTES=0 # $((LOG_MAX_SIZE_BYTES / 2))
 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 ######
@@ -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
 
 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
@@ -766,6 +766,7 @@ EOF
     if [[ "$GITHUB_REPO_LINK_SHOW" == "yes" ]]; then
         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>Modified from original script by Medowar<a href="https://www.medowar.de>" target="_blank"> (https://www.medowar.de)</a></p>
 EOF
     fi
     cat >>"$OUTPUT_DIR/$HTML_FILENAME" <<EOF