if (strlen($ret)) { $upvals = explode("\n", $ret); }
ob_end_clean();
}
- $walkfunc = create_function('&$val,$key', '$val = is_numeric(trim($val))?trim($val):((trim($val)=="L")?"L":"U");');
- array_walk($upvals, $walkfunc);
}
else {
foreach ($this->rrd_fields as $ds) {
}
}
else { $val = null; }
- $upvals[] = is_null($val)?'U':$val;
}
}
if (in_array('L', $upvals)) {
$upvals[$akey] = $lastvals[$rowids[$akey]];
}
}
+ $walkfunc = create_function('&$val,$key', '$val = is_numeric(trim($val))?trim($val):"U";');
+ array_walk($upvals, $walkfunc);
$return = null;
if (count($upvals)) {
$update_cmd = 'rrdtool update '.$this->rrd_file.' N:'.implode(':', $upvals);