From 4d20fa1195c322bf41d6d8129a46748cda5ed174 Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Wed, 13 Nov 2019 17:18:17 -0800 Subject: [PATCH] WTF-747 Fix resourceusage swap label bug (#750) Signed-off-by: Chris Cummer --- modules/resourceusage/widget.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] }