fix: fix NaN error in node statistics and improve rate calculation
- Prevent NaN values in RAM, swap and disk rate calculations
- Implement history system to calculate network and disk I/O rates accurately
- Handle cases of counter resets and negative values
- Set minimum values for small but significant rates
- Validate data to ensure compatibility with JSON serialization
