From 793cc2e085dc67097d1521d58052033cfdcbfef3 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sun, 7 Apr 2002 18:21:22 +0000 Subject: Better support for non-numeric values. git-svn-id: svn://svn.zabbix.com/trunk@346 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/config.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'frontends/php/include') diff --git a/frontends/php/include/config.inc b/frontends/php/include/config.inc index f9c3ea33..dfc9557d 100644 --- a/frontends/php/include/config.inc +++ b/frontends/php/include/config.inc @@ -759,7 +759,15 @@ } else { - $exp=$exp."{".DBget_field($res1,0,0).":".DBget_field($res1,0,1).".".DBget_field($res1,0,2)."(".DBget_field($res1,0,3).")}"; + $item=get_item_by_itemid(DBget_field($res1,0,4)); + if($item["value_type"] ==0) + { + $exp=$exp."{".DBget_field($res1,0,0).":".DBget_field($res1,0,1).".".DBget_field($res1,0,2)."(".DBget_field($res1,0,3).")}"; + } + else + { + $exp=$exp."{".DBget_field($res1,0,0).":".DBget_field($res1,0,1).".".DBget_field($res1,0,2)."(".DBget_field($res1,0,3).")}"; + } } continue; } @@ -1908,7 +1916,7 @@ show_table2_v_delimiter2(); echo "Press "; - echo " to see graph"; + echo " to see values in plain text"; show_table2_header_end(); -- cgit