Commits

Rodrigo Bistolfi committed 17efecc

media.py: use 2 digits in round() call

Comments (0)

Files changed (1)

vinstall/backend/media.py

         return "<Size %s %s>" % (self.n, self.unit)
 
     def __str__(self):
-        return "%s %s" % (round(self.n, 1), self.unit)
+        return "%s %s" % (round(self.n, 2), self.unit)
         
     def __init__(self, n, unit="GB"):
         self.unit = unit