diff options
| author | Guido van Rossum <guido@python.org> | 1997-08-15 00:45:26 (GMT) |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1997-08-15 00:45:26 (GMT) |
| commit | ff712aa8abde6a1a892ec39bb124cfd4a7cb992a (patch) | |
| tree | c5cf2853501f0678abb92fb8e91315b3ee0d8a76 /Lib/dos-8x3/test_thr.py | |
| parent | f84a539d38ffe79a4eb940c4a2071294fa734fe8 (diff) | |
| download | cpython-ff712aa8abde6a1a892ec39bb124cfd4a7cb992a.zip cpython-ff712aa8abde6a1a892ec39bb124cfd4a7cb992a.tar.gz cpython-ff712aa8abde6a1a892ec39bb124cfd4a7cb992a.tar.bz2 | |
The usual.
Diffstat (limited to 'Lib/dos-8x3/test_thr.py')
| -rwxr-xr-x | Lib/dos-8x3/test_thr.py | 4 |
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 |
