diff --git a/modules/resourceusage/widget.go b/modules/resourceusage/widget.go index 02fc3bd9..29b203d3 100644 --- a/modules/resourceusage/widget.go +++ b/modules/resourceusage/widget.go @@ -105,7 +105,7 @@ func MakeGraph(widget *Widget) { usedSwapLabel := bytefmt.ByteSize(swapUsed) 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] }