Dan Kenigsberg has posted comments on this change. Change subject: utils: Add round() helper ......................................................................
Patch Set 2: (1 comment) great (as in simple and obvious) idea. thanks. https://gerrit.ovirt.org/#/c/38210/2/lib/vdsm/utils.py File lib/vdsm/utils.py: Line 1249: def round(n, size): Line 1250: """ Line 1251: Round number n to the next multiple of size Line 1252: """ Line 1253: count = int(n + size - 1) / size let's use forward-compatible int division // -- To view, visit https://gerrit.ovirt.org/38210 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ie46e48d147d1fc222a6e0404df7ab757226f694b Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Nir Soffer <[email protected]> Gerrit-Reviewer: Adam Litke <[email protected]> Gerrit-Reviewer: Dan Kenigsberg <[email protected]> Gerrit-Reviewer: Francesco Romani <[email protected]> Gerrit-Reviewer: Nir Soffer <[email protected]> Gerrit-Reviewer: Yaniv Bronhaim <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
