From: Francois Fleuret Date: Sat, 17 Jun 2017 18:57:18 +0000 (+0200) Subject: Oups. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=a0de65c26758ec247ff419b9b53725733ed0e76c;p=pysvrt.git Oups. --- diff --git a/cnn-svrt.py b/cnn-svrt.py index 153bdc9..d44de2a 100755 --- a/cnn-svrt.py +++ b/cnn-svrt.py @@ -255,9 +255,9 @@ for arg in vars(args): ###################################################################### def int_to_suffix(n): - if n > 1000000 and n%1000000 == 0: + if n >= 1000000 and n%1000000 == 0: return str(n//1000000) + 'M' - elif n > 1000 and n%1000 == 0: + elif n >= 1000 and n%1000 == 0: return str(n//1000) + 'K' else: return str(n)