OSDN Git Service

2001-06-22 Ben Elliston <bje@redhat.com>
authorbje <bje>
Fri, 22 Jun 2001 05:02:46 +0000 (05:02 +0000)
committerbje <bje>
Fri, 22 Jun 2001 05:02:46 +0000 (05:02 +0000)
* lib/monkey.exp (monkey_test): Correct logic thinko when deciding
whether or not to output the finishing time.

sid/component/testsuite/ChangeLog
sid/component/testsuite/lib/monkey.exp

index 14a4f52..20f8f39 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-22  Ben Elliston  <bje@redhat.com>
+
+       * lib/monkey.exp (monkey_test): Correct logic thinko when deciding
+       whether or not to output the finishing time.
+
 2001-06-21  Ben Elliston  <bje@redhat.com>
 
        * sidcomp.cache/cache.exp: Test for the existence of "hit-latency"
index 4578fc0..6acbbb6 100644 (file)
@@ -100,7 +100,7 @@ proc monkey_test {type sym lib {iterations 30s}} {
            d { set finishtime [expr 3600 * 24 * $units + $now] }
            default { error "unknown unit of time in $iterations" }
        }
-        if {[clock seconds] - $finishtime > 60} {
+       if [expr $finishtime - [clock seconds] > 60] then {
            note "Testing $type until [clock format $finishtime]"
        }
        while {[clock seconds] < $finishtime} {