Add advanced pattern detection features to Powerball reader
- Enhanced CSV parsing script to include advanced statistical analyses. - Implemented functions to detect consecutive numbers, odd/even distributions, high/low distributions, sum patterns, gap patterns, hot/cold numbers, overdue numbers, number pairs, and decade distributions. - Integrated pattern analysis results into combination generation for more strategic number selection. - Updated main function to run advanced analyses and generate pattern-based combinations.
This commit is contained in:
@@ -22,7 +22,7 @@ IPMIPW = None
|
||||
IPMIEK = DEFAULT_EK
|
||||
|
||||
# Fan / temperature settings
|
||||
FANSPEED = 20 # percent
|
||||
FANSPEED = 15 # percent
|
||||
MAXTEMP = 37 # Celsius
|
||||
|
||||
def build_ipmi_base():
|
||||
|
||||
@@ -77,6 +77,16 @@ clean_walfiles() {
|
||||
fi
|
||||
done < <(find "$WAL_ARCHIVE_DIR" -maxdepth 1 -type f ! -name '*.backup' -print0)
|
||||
|
||||
# Also delete old .backup files (except the newest one) that exceed retention period
|
||||
for backup_file in "${backup_files[@]}"; do
|
||||
if [[ "$backup_file" != "$newest_backup" ]]; then
|
||||
backup_ts=$(stat -c %Y "$backup_file")
|
||||
if [[ "$backup_ts" -lt "$age_cutoff_ts" ]]; then
|
||||
files_to_delete+=("$backup_file")
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ ${#files_to_delete[@]} -eq 0 ]]; then
|
||||
log "No WAL files matched cleanup criteria."
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user