mirror of
https://github.com/woodchen-ink/random-api-go.git
synced 2025-07-18 13:52:02 +08:00
- Improved LogRequest function to correctly increment counts for referers, ensuring accurate tracking of direct and indirect accesses. - Added MarshalJSON method to SystemMetrics for proper serialization of TopReferers, facilitating better JSON representation of metrics. - Updated comments for clarity and maintainability, enhancing code readability.