diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-02-08 16:09:51 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-02-08 16:09:51 +0000 |
commit | cb6b5525e94b7f6f83737e7d826be072a6798419 (patch) | |
tree | 4d23ef95af0e0991fc05643df988ab02ce83d0c2 /frontends/php/overview.php | |
parent | a1acdfe0eb623c558e7b9c778d031d708de1ad06 (diff) | |
download | zabbix-cb6b5525e94b7f6f83737e7d826be072a6798419.tar.gz zabbix-cb6b5525e94b7f6f83737e7d826be072a6798419.tar.xz zabbix-cb6b5525e94b7f6f83737e7d826be072a6798419.zip |
Mino changes.
git-svn-id: svn://svn.zabbix.com/trunk@1661 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/overview.php')
-rw-r--r-- | frontends/php/overview.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/frontends/php/overview.php b/frontends/php/overview.php index 2a78ff3e..7b780faf 100644 --- a/frontends/php/overview.php +++ b/frontends/php/overview.php @@ -131,12 +131,15 @@ $rows=array(nbsp($row["description"])); foreach($hosts as $hostid) { - $sql="select lastvalue,units from items where hostid=$hostid and description='".$row["description"]."'"; + $sql="select value_type,lastvalue,units from items where hostid=$hostid and description='".$row["description"]."'"; $result2=DBselect($sql); if(DBnum_rows($result2)==1) { $row2=DBfetch($result2); - $value=convert_units($row2["lastvalue"],$row2["units"]); + if($row2["value_type"] == 0) + $value=nbsp(convert_units($row2["lastvalue"],$row2["units"])); + else + $value=nbsp(htmlspecialchars(substr($row2["lastvalue"],0,20)." ...")); } else { |