oVirtBackup icon indicating copy to clipboard operation
oVirtBackup copied to clipboard

fix backup duration per VM

Open tatref opened this issue 3 years ago • 1 comments
trafficstars

time_start is defined once at the beginning of the script, so the duration displayed is not per VM. Also the time is increasing:

2022-01-12 22:32:38,860: Duration: 2:37 minutes
2022-01-12 22:35:58,685: Duration: 5:57 minutes
2022-01-12 22:38:46,261: Duration: 8:45 minutes
2022-01-12 22:41:08,629: Duration: 11:7 minutes
2022-01-12 22:44:16,983: Duration: 14:15 minutes
2022-01-12 22:47:10,029: Duration: 17:9 minutes

I simply moved the initialization of the timer inside the vm loop. Maybe we could also add a global timer?

tatref avatar Jan 13 '22 10:01 tatref

please check the conflicts

wefixit-AT avatar Sep 07 '22 18:09 wefixit-AT