7 Commits

Author SHA1 Message Date
caf44aafcb refactor(server): Use database for online user count 2025-11-04 19:01:58 +00:00
677634c25c feat(server-info): add server IP addresses to output 2025-09-18 21:19:23 +00:00
6e35017b6f refactor(core): Migrate server_info traffic stats to use database
Updated `server_info.py` to fetch user traffic data directly from the MongoDB database instead of reading from the deprecated `users.json` file.
2025-09-12 08:58:53 +00:00
6fa872b6c3 feat: optimize system monitor with async I/O and traffic since reboot
- Replace synchronous file operations with async aiofiles
- Implement concurrent data gathering using asyncio.gather()
- Move API calls to thread pool executor
- Add LRU cache for config file reads
- Optimize parsing functions for single-pass processing
- Reduce measurement intervals for faster response times
- Add system uptime and boot time display
- Track total network traffic since last reboot from /proc/net/dev
- Separate system traffic (since reboot) from user traffic (all-time)
- Add human-readable uptime formatting
- Enhance output with clear traffic categorization
2025-08-19 23:36:44 +03:30
cdab63a72a fix: count actual device connections instead of unique users 2025-08-18 16:06:45 +03:30
91ca3fb68a fix: align server_info.py RAM usage with free -m output 2025-05-23 10:34:49 +03:30
976f080523 Refactor: Implement server stats in Python 2025-05-03 00:20:36 +03:30