mirror of
https://github.com/woodchen-ink/proxy-go.git
synced 2025-07-18 08:31:55 +08:00
- Added initialization of last save time during collector setup to ensure timely data persistence. - Implemented immediate saving of metrics after loading historical data to maintain accurate statistics. - Improved error handling in SaveMetrics by validating input types before updating persistent stats. - Modified CheckDataConsistency logic to allow for a tolerance of 5% in total request comparisons, enhancing reliability in metrics validation. These changes improve the accuracy and reliability of the metrics collection process, ensuring better monitoring and data integrity.