Negative difference of sizes in archive gives ValueError: math domain error #1650
Closed
2 tasks done
Labels
good first issue
Simple change to start learning code base
help wanted
This issue is available, comment if you want to fix it
type:bug
Something doesn't work as intended
Description
Steps to reproduce:
When I see the diff of first two backups (in which I added a file), it works fine but when I try to view the diff for last two archives, it gives this error:
I traced the error down to
vorta/src/vorta/views/diff_result.py
Lines 775 to 779 in 6bc5321
value of
item.data.changed_size
anditem.data.size
is in negative becauselog
can't take negative valueSuggested fix:
It would still calculate the best unit and display +/- as per size. I'm not sure if I'm missing something. If this is a bug, please assign this to me so I can open a PR.
Reproduction
OS
macOS 12.2.1
Version of Vorta
0.8.10 / master branch
What did you install Vorta with?
Pip
Version of Borg
No response
Logs
The text was updated successfully, but these errors were encountered: