diff --git a/s3tests/rand_readwrite.py b/s3tests/rand_readwrite.py index d22cc23..28b845c 100644 --- a/s3tests/rand_readwrite.py +++ b/s3tests/rand_readwrite.py @@ -32,13 +32,18 @@ class Result: else: status = 'FAILURE' + if (self.time == 0): + mbps = '?' + else: + mbps = self.size / self.time / 1024.0 + return "".format( success=status, type=type_s, name=self.name, size=self.size, time=self.time, - mbps=self.size / self.time / 1024.0, + mbps=mbps, details=self.details )