Francesco Romani has uploaded a new change for review.

Change subject: sampling: rename generic window constant
......................................................................

sampling: rename generic window constant

Until we have support for one element sampling windows,
we make use of this constant.

This patch just renames it to make it usable for generic samplings.

Change-Id: Ibb9351170c0b0971d01e0c35ed434f0260a12fd9
Signed-off-by: Francesco Romani <[email protected]>
---
M vdsm/virt/vm.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/07/31607/1

diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py
index 5b607b5..ad1ef2f 100644
--- a/vdsm/virt/vm.py
+++ b/vdsm/virt/vm.py
@@ -195,7 +195,7 @@
 
     # CPU tune sampling window
     # minimum supported value is 2
-    CPU_TUNE_SAMPLING_WINDOW = 2
+    GENERIC_SAMPLING_WINDOW = 2
 
     # This flag will prevent excessive log flooding when running
     # on libvirt with no support for metadata xml elements.
@@ -258,7 +258,7 @@
             AdvancedStatsFunction(
                 self._sampleCpuTune,
                 config.getint('vars', 'vm_sample_cpu_tune_interval'),
-                self.CPU_TUNE_SAMPLING_WINDOW))
+                self.GENERIC_SAMPLING_WINDOW))
 
         self.addStatsFunction(
             self.highWrite, self.updateVolumes, self.sampleCpu,


-- 
To view, visit http://gerrit.ovirt.org/31607
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibb9351170c0b0971d01e0c35ed434f0260a12fd9
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to