diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-06-27 07:29:32 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-06-27 07:29:32 +0000 |
| commit | a840c40a485076ed3b5f43e79ddb4bec59afb862 (patch) | |
| tree | b44fd2b467200f0ea3f72329a5650a0d83a4f095 /frontends/php/latest.php | |
| parent | e2a49f81092e445f549e3cac4c0d57a2b14df7fb (diff) | |
| download | zabbix-a840c40a485076ed3b5f43e79ddb4bec59afb862.tar.gz zabbix-a840c40a485076ed3b5f43e79ddb4bec59afb862.tar.xz zabbix-a840c40a485076ed3b5f43e79ddb4bec59afb862.zip | |
- changed type of lastlogsize to long in structure METRIC (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2980 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/latest.php')
| -rw-r--r-- | frontends/php/latest.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/frontends/php/latest.php b/frontends/php/latest.php index 1e8d5776..6eeb3c41 100644 --- a/frontends/php/latest.php +++ b/frontends/php/latest.php @@ -78,17 +78,20 @@ else if($db_item["value_type"] == ITEM_VALUE_TYPE_UINT64) { $lastvalue=convert_units($db_item["lastvalue"],$db_item["units"]); - $lastvalue = replace_value_by_map($lastvalue, $db_item["valuemapid"]); } else if($db_item["value_type"] == ITEM_VALUE_TYPE_TEXT) { -// $lastvalue=nbsp(htmlspecialchars(substr($db_item["lastvalue"],0,20)." ...")); $lastvalue="..."; } else { - $lastvalue=nbsp(htmlspecialchars(substr($db_item["lastvalue"],0,20)." ...")); + $lastvalue=nbsp(htmlspecialchars(substr($db_item["lastvalue"],0,20))); + if(strlen($db_item["lastvalue"]) > 20) + $lastvalue .= " ..."; } + if($db_item["valuemapid"] > 0); + $lastvalue = replace_value_by_map($lastvalue, $db_item["valuemapid"]); + } else { |
