summaryrefslogtreecommitdiffstats
path: root/frontends/php/latest.php
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-08 13:08:58 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-08 13:08:58 +0000
commit14a3c401d547ecb4db461855536b98cf1e6c8b42 (patch)
tree6c10a43c1705ebbd3a70c30db6e3f27f63bb937d /frontends/php/latest.php
parent6e89fb6323d0d79abd65dc8ac50874dda621709a (diff)
downloadzabbix-14a3c401d547ecb4db461855536b98cf1e6c8b42.tar.gz
zabbix-14a3c401d547ecb4db461855536b98cf1e6c8b42.tar.xz
zabbix-14a3c401d547ecb4db461855536b98cf1e6c8b42.zip
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@3580 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/latest.php')
-rw-r--r--frontends/php/latest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/php/latest.php b/frontends/php/latest.php
index 919b4c46..421a93ab 100644
--- a/frontends/php/latest.php
+++ b/frontends/php/latest.php
@@ -320,7 +320,8 @@ include_once "include/page_header.php";
$lastvalue=format_lastvalue($db_item);
if( isset($db_item["lastvalue"]) && isset($db_item["prevvalue"]) &&
- ($db_item["value_type"] == 0) && ($db_item["lastvalue"]-$db_item["prevvalue"] != 0) )
+ ($db_item["value_type"] == ITEM_VALUE_TYPE_FLOAT || $db_item["value_type"] == ITEM_VALUE_TYPE_UINT64) &&
+ ($db_item["lastvalue"]-$db_item["prevvalue"] != 0) )
{
if($db_item["lastvalue"]-$db_item["prevvalue"]<0)
{