mirror of
https://github.com/OpenNebula/one.git
synced 2025-08-25 21:49:29 +03:00
im-collectd: change the directory name to detect xen4
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user