Francesco Romani has uploaded a new change for review. Change subject: virt: migration: rename helper function ......................................................................
virt: migration: rename helper function rename helper function to be a bit more consistent with the new style guidelines. Change-Id: Ida7287528456763d641bc465dfd6e5e8e83f3f62 Signed-off-by: Francesco Romani <from...@redhat.com> --- M vdsm/virt/migration.py 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/55/28355/1 diff --git a/vdsm/virt/migration.py b/vdsm/virt/migration.py index ca73f75..b5d840d 100644 --- a/vdsm/virt/migration.py +++ b/vdsm/virt/migration.py @@ -424,7 +424,7 @@ if self._lastProgressTime is None: self._lastProgressTime = time.time() - def calculateProgress(remaining, total): + def update_progress(remaining, total): if remaining == 0 and total: return 100 progress = 100 - 100 * remaining / total if total else 0 @@ -469,7 +469,7 @@ dataRemaining / Mbytes, self._lowmark / Mbytes) if jobType != 0: - self.progress = calculateProgress(dataRemaining, dataTotal) + self.progress = update_progress(dataRemaining, dataTotal) self._vm.log.info('Migration Progress: %s seconds elapsed,' ' %s%% of data processed' % (timeElapsed / 1000, self.progress)) -- To view, visit http://gerrit.ovirt.org/28355 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ida7287528456763d641bc465dfd6e5e8e83f3f62 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Francesco Romani <from...@redhat.com> _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches