mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
WTF-747 Fix resourceusage swap label bug (#750)
Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
parent
428ff80f1d
commit
4d20fa1195
@ -105,7 +105,7 @@ func MakeGraph(widget *Widget) {
|
|||||||
usedSwapLabel := bytefmt.ByteSize(swapUsed)
|
usedSwapLabel := bytefmt.ByteSize(swapUsed)
|
||||||
totalSwapLabel := bytefmt.ByteSize(memInfo.SwapTotal)
|
totalSwapLabel := bytefmt.ByteSize(memInfo.SwapTotal)
|
||||||
|
|
||||||
if usedSwapLabel[len(usedSwapLabel)-1] == totalMemLabel[len(totalSwapLabel)-1] {
|
if usedSwapLabel[len(usedSwapLabel)-1] == totalSwapLabel[len(totalSwapLabel)-1] {
|
||||||
usedSwapLabel = usedSwapLabel[:len(usedSwapLabel)-1]
|
usedSwapLabel = usedSwapLabel[:len(usedSwapLabel)-1]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user