aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/analyze-rcynic-history.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/analyze-rcynic-history.py b/scripts/analyze-rcynic-history.py
index 88a55cf9..fdf850cc 100644
--- a/scripts/analyze-rcynic-history.py
+++ b/scripts/analyze-rcynic-history.py
@@ -85,7 +85,9 @@ class Host(object):
@property
def seconds_per_object(self):
- return float(self.elapsed.total_seconds()) / float(self.object_count)
+ return float(self.elapsed.days * 24 * 60 * 60 +
+ self.elapsed.seconds +
+ self.elapsed.microseconds / 10**6) / float(self.object_count)
@property
def objects_per_connection(self):
@@ -93,7 +95,9 @@ class Host(object):
@property
def average_connection_time(self):
- return float(self.total_connection_time.total_seconds()) / float(self.connection_count)
+ return float(self.total_connection_time.days * 24 * 60 * 60 +
+ self.total_connection_time.seconds +
+ self.total_connection_time.microseconds / 10**6) / float(self.connection_count)
class Format(object):