mirror of https://github.com/jetkvm/kvm.git
fix: update power saving mode condition to include zero duration
This commit is contained in:
parent
da6f0337ee
commit
c50d8f979f
|
|
@ -95,7 +95,7 @@ export default function SettingsHardwareRoute() {
|
|||
return;
|
||||
}
|
||||
const result = resp.result as { enabled: boolean; duration: number };
|
||||
setPowerSavingEnabled(result.duration > 0);
|
||||
setPowerSavingEnabled(result.duration >= 0);
|
||||
});
|
||||
}, [send]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue