mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-19 23:39:58 -05:00
fix swap usage nan
This commit is contained in:
@@ -17,7 +17,7 @@ Singleton {
|
|||||||
property double swapTotal: 1
|
property double swapTotal: 1
|
||||||
property double swapFree: 1
|
property double swapFree: 1
|
||||||
property double swapUsed: swapTotal - swapFree
|
property double swapUsed: swapTotal - swapFree
|
||||||
property double swapUsedPercentage: swapUsed / swapTotal
|
property double swapUsedPercentage: swapTotal > 0 ? (swapUsed / swapTotal) : 0
|
||||||
property double cpuUsage: 0
|
property double cpuUsage: 0
|
||||||
property var previousCpuStats
|
property var previousCpuStats
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user