making percentages inexact

This commit is contained in:
Alex Shinn 2012-05-06 14:51:53 +09:00
parent 8869320e63
commit 14370af921

View file

@ -451,7 +451,7 @@
(define (plural word n) (define (plural word n)
(if (= n 1) word (string-append word "s"))) (if (= n 1) word (string-append word "s")))
(define (percent n d) (define (percent n d)
(string-append " (" (number->string (/ (round (* 1000 (/ n d))) 10)) "%)")) (string-append " (" (number->string (/ (round (* 1000.0 (/ n d))) 10)) "%)"))
(let* ((end-time (get-time-of-day)) (let* ((end-time (get-time-of-day))
(start-time (test-group-ref group 'start-time)) (start-time (test-group-ref group 'start-time))
(duration (timeval-difference (car end-time) (car start-time))) (duration (timeval-difference (car end-time) (car start-time)))