added net interface and increased max cpu fan speed

This commit is contained in:
mount 2026-07-25 23:21:11 +02:00
parent c6c85c0511
commit a1894539ca

View File

@ -18,7 +18,7 @@ const KIB_TO_B = 1024; // 1 KiB = 1,024 B
const CPU_TEMP_MIN = 20; // Minimum CPU temperature const CPU_TEMP_MIN = 20; // Minimum CPU temperature
const CPU_TEMP_MAX = 100; // Maximum CPU temperature const CPU_TEMP_MAX = 100; // Maximum CPU temperature
const CPU_FANSPEED_MAX = 4000; // CPU fan graph full-scale speed const CPU_FANSPEED_MAX = 6000; // CPU fan graph full-scale speed
const CPU_FAN_RETRY_MIN = 5; // Initial retry delay in seconds const CPU_FAN_RETRY_MIN = 5; // Initial retry delay in seconds
const CPU_FAN_RETRY_MAX = 300; // Maximum retry delay in seconds const CPU_FAN_RETRY_MAX = 300; // Maximum retry delay in seconds
const CPU_FAN_RETRY_MULTIPLIER = 2; const CPU_FAN_RETRY_MULTIPLIER = 2;
@ -456,7 +456,12 @@ SystemMonitorGraph.prototype = {
this.get_network_values(); this.get_network_values();
// For network, we don't use the single 'value' variable as we have dual lines // For network, we don't use the single 'value' variable as we have dual lines
value = 0; // Not used for network type value = 0; // Not used for network type
text1 = _("Network");
if (this.network_interface) {
text1 = _("Network " + this.network_interface);
} else {
text1 = _("Network");
}
// Format speeds with appropriate units // Format speeds with appropriate units
let down_speed_formatted = this.format_network_speed(this.net_down_speed); let down_speed_formatted = this.format_network_speed(this.net_down_speed);