From 68424dd31013b5d8444c21a3562ada396e4607ad Mon Sep 17 00:00:00 2001 From: robert Date: Fri, 13 May 2005 19:24:21 +0000 Subject: [PATCH] replace all non-numeric values in update array with U for unknown --- include/classes/rrdstat.php-class | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/classes/rrdstat.php-class b/include/classes/rrdstat.php-class index 55ffaec..1c2306b 100644 --- a/include/classes/rrdstat.php-class +++ b/include/classes/rrdstat.php-class @@ -157,6 +157,8 @@ class rrdstat { $upvals = explode("\n", ob_get_contents()); ob_end_clean(); } + $walkfunc = create_function('&$val', 'return (is_numeric($val)?$val:"U");'); + array_walk($upvals, $walkfunc); } else { foreach ($this->rrd_fields as $ds) { -- 2.43.0