summaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
Diffstat (limited to 'frontends')
-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)
{