fixed missing percentage sign

This commit is contained in:
2023-04-14 23:04:59 +02:00
parent 27ef0bf659
commit 25f89c076f

View File

@@ -57,7 +57,7 @@ func formatLine(stats *probing.Statistics) {
packetColor = fmt.Sprintf("%%{F#%s}", CritColor) 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) { func formatLineWaybar(stats *probing.Statistics) {