From 3a97d96d821b3b4d40680188fb94a0fea248c3c4 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Fri, 14 Apr 2023 23:07:27 +0200 Subject: [PATCH] missing percent on reset --- ping-package.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ping-package.go b/ping-package.go index 2aacd64..e222d90 100644 --- a/ping-package.go +++ b/ping-package.go @@ -24,7 +24,7 @@ var ( const ( CritColor = "ff5050" WarnColor = "ffbf00" - ResetColor = "{F-}" + ResetColor = "%{F-}" ) type WaybarOut struct { @@ -57,7 +57,7 @@ func formatLine(stats *probing.Statistics) { packetColor = fmt.Sprintf("%%{F#%s}", CritColor) } - fmt.Printf("%s\uE4E2 %dms %%%s\uF1B2 %d%%\n", rttColor, stats.AvgRtt.Milliseconds(), packetColor, int(math.Round(stats.PacketLoss))) + fmt.Printf("%s\uE4E2 %dms %s\uF1B2 %d%%\n", rttColor, stats.AvgRtt.Milliseconds(), packetColor, int(math.Round(stats.PacketLoss))) } func formatLineWaybar(stats *probing.Statistics) {