Nir Soffer has posted comments on this change.

Change subject: virt: stats: make compute_latency more robust
......................................................................


Patch Set 8:

(1 comment)

https://gerrit.ovirt.org/#/c/50593/8/vdsm/virt/vmstats.py
File vdsm/virt/vmstats.py:

Line 344:     def add_latency(name, mode):
Line 345:         try:
Line 346:             stats[name] = str(compute_latency(mode))
Line 347:         except KeyError:
Line 348:             pass
Same as previous patch, but here we see that we have a common pattern - we need 
a common helper to get 2 samples from libvirt result dict:

    last, first = get_samples("block.%d.rd.reqs", last_index, first_index)
Line 349: 
Line 350:     add_latency('readLatency', 'rd')
Line 351:     add_latency('writeLatency', 'wr')
Line 352:     add_latency('flushLatency', 'fl')


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ie4670309d48bd65a3afaba8124407598b76d808d
Gerrit-PatchSet: 8
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Francesco Romani <[email protected]>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Polednik <[email protected]>
Gerrit-Reviewer: Milan Zamazal <[email protected]>
Gerrit-Reviewer: Nir Soffer <[email protected]>
Gerrit-Reviewer: Vinzenz Feenstra <[email protected]>
Gerrit-Reviewer: gerrit-hooks <[email protected]>
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to