summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/test_thr.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-15 00:45:26 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-15 00:45:26 (GMT)
commitff712aa8abde6a1a892ec39bb124cfd4a7cb992a (patch)
treec5cf2853501f0678abb92fb8e91315b3ee0d8a76 /Lib/dos-8x3/test_thr.py
parentf84a539d38ffe79a4eb940c4a2071294fa734fe8 (diff)
downloadcpython-ff712aa8abde6a1a892ec39bb124cfd4a7cb992a.zip
cpython-ff712aa8abde6a1a892ec39bb124cfd4a7cb992a.tar.gz
cpython-ff712aa8abde6a1a892ec39bb124cfd4a7cb992a.tar.bz2
The usual.
Diffstat (limited to 'Lib/dos-8x3/test_thr.py')
-rwxr-xr-xLib/dos-8x3/test_thr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/dos-8x3/test_thr.py b/Lib/dos-8x3/test_thr.py
index 8a1f435..113135b 100755
--- a/Lib/dos-8x3/test_thr.py
+++ b/Lib/dos-8x3/test_thr.py
@@ -21,7 +21,7 @@ def task(ident):
delay = whrandom.random() * numtasks
whmutex.release()
if verbose:
- print 'task', ident, 'will run for', delay, 'sec'
+ print 'task', ident, 'will run for', round(delay, 1), 'sec'
time.sleep(delay)
if verbose:
print 'task', ident, 'done'
@@ -89,7 +89,7 @@ def task2(ident):
delay = whrandom.random() * numtasks
whmutex.release()
if verbose:
- print 'task', ident, 'will run for', delay, 'sec'
+ print 'task', ident, 'will run for', round(delay, 1), 'sec'
time.sleep(delay)
if verbose:
print 'task', ident, 'entering barrier', i