fix 'raco profile' parameter parsing
This commit is contained in:
parent
b3ebd557b1
commit
e32bab94ea
|
@ -18,13 +18,13 @@
|
||||||
[("--delay") n
|
[("--delay") n
|
||||||
"Sampling rate (seconds)"
|
"Sampling rate (seconds)"
|
||||||
(let ([n* (string->number n)])
|
(let ([n* (string->number n)])
|
||||||
(unless (real? n)
|
(unless (real? n*)
|
||||||
(raise-argument-error 'raco-profile "real?" n*))
|
(raise-argument-error 'raco-profile "real?" n*))
|
||||||
(set! delay n*))]
|
(set! delay n*))]
|
||||||
[("--repeat") n
|
[("--repeat") n
|
||||||
"Number of iterations"
|
"Number of iterations"
|
||||||
(let ([n* (string->number n)])
|
(let ([n* (string->number n)])
|
||||||
(unless (integer?)
|
(unless (integer? n*)
|
||||||
(raise-argument-error 'raco-profile "integer?" n*))
|
(raise-argument-error 'raco-profile "integer?" n*))
|
||||||
(set! iterations n*))]
|
(set! iterations n*))]
|
||||||
[("--all-threads")
|
[("--all-threads")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user