BIND 10 trac2225_statistics, updated. dd637a386748c2a393acc3d437c071a10b9cc7f8 [2225_statistics] Add a FIXME comment about not using delta.total_seconds()
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Jan 18 11:52:33 UTC 2013
The branch, trac2225_statistics has been updated
via dd637a386748c2a393acc3d437c071a10b9cc7f8 (commit)
from 2a337c756ad1064af1cbcaa8cd2c79be65f0b4d5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit dd637a386748c2a393acc3d437c071a10b9cc7f8
Author: Mukund Sivaraman <muks at isc.org>
Date: Fri Jan 18 17:22:03 2013 +0530
[2225_statistics] Add a FIXME comment about not using delta.total_seconds()
-----------------------------------------------------------------------
Summary of changes:
src/lib/python/isc/statistics/counters.py | 4 ++++
1 file changed, 4 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/lib/python/isc/statistics/counters.py b/src/lib/python/isc/statistics/counters.py
index 8da0b1e..99b989d 100644
--- a/src/lib/python/isc/statistics/counters.py
+++ b/src/lib/python/isc/statistics/counters.py
@@ -126,6 +126,10 @@ def _stop_timer(start_time, element, spec, identifier):
the element, which is in seconds between start_time and the
current time and is float-type."""
delta = datetime.now() - start_time
+ # FIXME: The following statement can be replaced by:
+ # sec = delta.total_seconds()
+ # but total_seconds() is not available in Python 3.1. Please update
+ # this code when we depend on Python 3.2.
sec = round(delta.days * 86400 + delta.seconds + \
delta.microseconds * 1E-6, 6)
_set_counter(element, spec, identifier, sec)
More information about the bind10-changes
mailing list