mirror of
https://github.com/SqrtMinusOne/org-clock-agg.git
synced 2025-12-10 14:03:02 +03:00
fix: compare with zero
This commit is contained in:
parent
89d93bd486
commit
27c54bfb78
1 changed files with 2 additions and 2 deletions
|
|
@ -717,11 +717,11 @@ TOTAL-TIME and PARENT-TIME are recursive parameters."
|
|||
(dolist (node tree)
|
||||
(let ((total (float (alist-get :total (cdr node)))))
|
||||
(setf (alist-get :parent-share (cdr node))
|
||||
(if (> 0 parent-time)
|
||||
(if (< 0 parent-time)
|
||||
(/ total (float parent-time))
|
||||
0)
|
||||
(alist-get :total-share (cdr node))
|
||||
(if (> 0 total-time)
|
||||
(if (< 0 total-time)
|
||||
(/ total (float total-time))
|
||||
0))
|
||||
(org-clock-agg--groupby-postaggregate
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue