Changelog:
- Enhancements
- net_if_stats()'s isup also checks whether the NIC is running (meaning Wi-Fi or ethernet cable is connected).
- improved battery detection and charge "secsleft" calculation
- Bug fixes
- physical cpu_count() result is incorrect on systems with more than one CPU socket.
- sensors_battery(): if percent can be determined but not the remaining values, still return a result instead of None.
Signed-off-by: Algent Albrahimi <algent@protonmail.com>