mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 649933 - Creating cash flow report takes a long time
The progress bar seems to induce a non-neglectable performance hit on OS X and possibly Windows as well. This patch reduces the update frequency of the progress bar.
This commit is contained in:
@@ -260,7 +260,8 @@
|
||||
(for-each
|
||||
(lambda (split)
|
||||
(set! work-done (+ 1 work-done))
|
||||
(gnc:report-percent-done (* 85 (/ work-done splits-to-do)))
|
||||
(if (= (modulo work-done 100) 0)
|
||||
(gnc:report-percent-done (* 85 (/ work-done splits-to-do))))
|
||||
(let ((parent (xaccSplitGetParent split)))
|
||||
(if (and (gnc:timepair-le (gnc-transaction-get-date-posted parent) to-date-tp)
|
||||
(gnc:timepair-ge (gnc-transaction-get-date-posted parent) from-date-tp))
|
||||
|
||||
Reference in New Issue
Block a user