function __construct($instance, $parameter) { parent::__construct($instance, $parameter); if ($parameter !== NULL) { $this->cpu_to_monitor = $parameter; } }
function __construct($instance, $parameter) { parent::__construct($instance, $parameter); if ($parameter === NULL) { $this->cpu_to_monitor = "summary"; } else { $this->cpu_to_monitor = $parameter; } }
function __construct($instance, $parameter) { parent::__construct($instance, $parameter); if ($parameter !== NULL) { $this->disk_to_monitor = $parameter; } else { if (self::get_supported_devices() != null) { $disks = self::get_supported_devices(); $this->disk_to_monitor = $disks[0]; } } }
function __construct($instance, $cgroup_name) { parent::__construct($instance, $cgroup_name); $this->cgroup_stat_path = '/sys/fs/cgroup/cpu,cpuacct/' . $cgroup_name . '/cpuacct.stat'; }
function __construct($instance, $parameter) { parent::__construct($instance, $parameter); $this->set_probe_mode(); }