From Dan Kenigsberg <[email protected]>: Dan Kenigsberg has uploaded a new change for review.
Change subject: virt.sampling: drop dead code ...................................................................... virt.sampling: drop dead code recentClient was used by the connectivity log, and should have been dropped in commit f68cc2d7. This patch stops updating a field that no one reads Change-Id: Ibf858255ff91ac4fe96aecfb66f446f00e84d58f Signed-off-by: Dan Kenigsberg <[email protected]> --- M lib/vdsm/virt/sampling.py 1 file changed, 1 insertion(+), 10 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/96/79296/1 diff --git a/lib/vdsm/virt/sampling.py b/lib/vdsm/virt/sampling.py index 189df9f..53eabb7 100644 --- a/lib/vdsm/virt/sampling.py +++ b/lib/vdsm/virt/sampling.py @@ -37,7 +37,7 @@ from vdsm import utils import vdsm.common.time from vdsm.config import config -from vdsm.constants import P_VDSM_RUN, P_VDSM_CLIENT_LOG +from vdsm.constants import P_VDSM_RUN from vdsm.host import api as hostapi from vdsm.network import ipwrapper from vdsm.network.netinfo import nics, bonding, vlans @@ -253,15 +253,6 @@ self.cpuCores = CpuCoreSample() self.numaNodeMem = NumaNodeMemorySample() ENGINE_DEFAULT_POLL_INTERVAL = 15 - try: - self.recentClient = ( - self.timestamp - os.stat(P_VDSM_CLIENT_LOG).st_mtime < - 2 * ENGINE_DEFAULT_POLL_INTERVAL) - except OSError as e: - if e.errno == errno.ENOENT: - self.recentClient = False - else: - raise _MINIMUM_SAMPLES = 1 -- To view, visit https://gerrit.ovirt.org/79296 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibf858255ff91ac4fe96aecfb66f446f00e84d58f Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Dan Kenigsberg <[email protected]> _______________________________________________ vdsm-patches mailing list -- [email protected] To unsubscribe send an email to [email protected]
