Francesco Romani has posted comments on this change.

Change subject: sampling: make _getInterfaceStats a function
......................................................................


Patch Set 6:

(1 comment)

https://gerrit.ovirt.org/#/c/40430/6/vdsm/virt/sampling.py
File vdsm/virt/sampling.py:

Line 672:             cpuCoreStats[str(cpuCore)] = coreStat
Line 673:     return cpuCoreStats
Line 674: 
Line 675: 
Line 676: def _get_interfaces_stats(hs0, hs1, interval):
> isn't interval 'too much information'? I understand that it was already com
I think you're right about `interval' (here and in _get_cpu_cores_stats).
passing 'interval' saves little and opens a little window for abusing, hance 
will revert.
Line 677:     rx = tx = rxDropped = txDropped = 0
Line 678:     stats = {'network': {}}
Line 679:     total_rate = 0
Line 680:     for ifid in hs1.interfaces:


-- 
To view, visit https://gerrit.ovirt.org/40430
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I0b5796f3463585794d2696ce73f8357cb0fd1f78
Gerrit-PatchSet: 6
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <[email protected]>
Gerrit-Reviewer: Francesco Romani <[email protected]>
Gerrit-Reviewer: Ido Barkan <[email protected]>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: [email protected]
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to