~ko-de-r-de/zabbix/precise

« back to all changes in this revision

Viewing changes to frontends/php/latest.php

  • Committer: guntis
  • Date: 2013-08-01 06:46:25 UTC
  • Revision ID: svn-v4:f4e7fd02-d210-4e34-a1e0-d4093fb66cc2:trunk:37472
..F....... [ZBX-4986] absolute urls replaced with relative and fixed commit bugs

Show diffs side-by-side

added added

removed removed

Lines of Context:
342
342
                }
343
343
 
344
344
                // for 'unixtime' change should be calculated as uptime
345
 
                $change .= convert_units(array(
346
 
                        'value' => bcsub($lastHistory['value'], $prevHistory['value'], $digits),
347
 
                        'units' => $db_item['units'] == 'unixtime' ? 'uptime' : $db_item['units']
348
 
                ));
 
345
                $change .= convert_units(
 
346
                        bcsub($lastHistory['value'], $prevHistory['value'], $digits),
 
347
                        $db_item['units'] == 'unixtime' ? 'uptime' : $db_item['units'],
 
348
                        0
 
349
                );
349
350
                $change = nbsp($change);
350
351
        }
351
352
        else {
541
542
                }
542
543
 
543
544
                // for 'unixtime' change should be calculated as uptime
544
 
                $change .= convert_units(array(
545
 
                        'value' => bcsub($lastHistory['value'], $prevHistory['value'], $digits),
546
 
                        'units' => $db_item['units'] == 'unixtime' ? 'uptime' : $db_item['units']
547
 
                ));
 
545
                $change .= convert_units(
 
546
                        bcsub($lastHistory['value'], $prevHistory['value'], $digits),
 
547
                        $db_item['units'] == 'unixtime' ? 'uptime' : $db_item['units'],
 
548
                        0
 
549
                );
548
550
                $change = nbsp($change);
549
551
        }
550
552
        else {