summaryrefslogtreecommitdiffstats
path: root/frontends/php/latest.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-06-27 07:29:32 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-06-27 07:29:32 +0000
commita840c40a485076ed3b5f43e79ddb4bec59afb862 (patch)
treeb44fd2b467200f0ea3f72329a5650a0d83a4f095 /frontends/php/latest.php
parente2a49f81092e445f549e3cac4c0d57a2b14df7fb (diff)
downloadzabbix-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.php9
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
{