added 1e-10 floor to prevent div-by-zero
This commit is contained in:
parent
938959611e
commit
d54f51ab79
|
@ -10,7 +10,7 @@
|
|||
(define *-node (profile-*-node profile))
|
||||
(define hidden (get-hidden profile hide-self% hide-subs%))
|
||||
(define nodes (remq* hidden (profile-nodes profile)))
|
||||
(define total-time (profile-total-time profile))
|
||||
(define total-time (max 1e-20 (profile-total-time profile)))
|
||||
(define node->
|
||||
(let ([t (make-hasheq)])
|
||||
(for ([node (in-list nodes)] [idx (in-naturals 1)])
|
||||
|
|
Loading…
Reference in New Issue
Block a user