diff --git a/i3bar_pingclock.nim b/i3bar_pingclock.nim index 4eaf898..906e10b 100755 --- a/i3bar_pingclock.nim +++ b/i3bar_pingclock.nim @@ -23,7 +23,8 @@ proc get_ping(): float = return ping proc getObject(ping: float): i3barData = - let niceping = $round(ping,1) + let pingstr = split($ping,".") + let niceping = pingstr[0] & "." & pingstr[1][0] var text = "🏓 " & niceping & " ms" var col = foreground if ping < 0: