[Python-checkins] cpython: Issue #22043: Oops, fix perf_counter() on UNIX if no monotonic clock is
victor.stinner
python-checkins at python.org
Fri Aug 29 17:01:04 CEST 2014
http://hg.python.org/cpython/rev/ab81b4cdc33c
changeset: 92267:ab81b4cdc33c
user: Victor Stinner <victor.stinner at gmail.com>
date: Fri Aug 29 17:00:17 2014 +0200
summary:
Issue #22043: Oops, fix perf_counter() on UNIX if no monotonic clock is
available (unlikely)
files:
Modules/timemodule.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -1046,9 +1046,8 @@
use_monotonic = 0;
PyErr_Clear();
}
-#else
+#endif
return floattime(info);
-#endif
#endif
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list