im-collectd: change the directory name to detect xen4

This commit is contained in:
Javi Fontan committed 2013-10-31 18:41:43 +01:00
1 parent 9ff64ab98c
commit f9193f44eb
1 file changed
+1 -1
+1 -1
View File
@@ -21,7 +21,7 @@ require "pp"
XENTOP_PATH="/usr/sbin/xentop"
dir=File.basename(Dir.pwd)
if dir=='xen4.d'
if dir.match(/^xen4/)
XM_PATH="/usr/sbin/xl"
else
XM_PATH="/usr/sbin/xm"