mirror of
https://github.com/dimitri/pgloader.git
synced 2026-03-09 06:01:31 +01:00
Fix total-line in reporting.
We did it correctly for the bytes, and we need to apply the same logic to other metric: the relevant information in the total summary line is the sum from the data parts, not the sum from the postload parts.
This commit is contained in:
parent
460fe6cc77
commit
2595ddaae3
@ -70,9 +70,16 @@
|
||||
(table-list (mapcar (lambda (table)
|
||||
(gethash table (pgstate-tables data)))
|
||||
(pgstate-tabnames data)))
|
||||
(total-bytes (reduce #'+ table-list :key #'pgtable-bytes)))
|
||||
(total-bytes (reduce #'+ table-list :key #'pgtable-bytes))
|
||||
(total-read (reduce #'+ table-list :key #'pgtable-read))
|
||||
(total-rows (reduce #'+ table-list :key #'pgtable-rows))
|
||||
(total-errs (reduce #'+ table-list :key #'pgtable-errs)))
|
||||
(setf (state-bytes state) total-bytes)
|
||||
(setf (pgstate-bytes (state-postload state)) total-bytes))
|
||||
(setf (pgstate-bytes (state-postload state)) total-bytes)
|
||||
|
||||
(setf (pgstate-read (state-postload state)) total-read)
|
||||
(setf (pgstate-rows (state-postload state)) total-rows)
|
||||
(setf (pgstate-errs (state-postload state)) total-errs))
|
||||
|
||||
(pretty-print *report-stream* state format)))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user