Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-8098

not correct calcMaxLengthAfterDot

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 2.2.3
    • Frontend (F)
    • OS: Sabayon Linux x86 14.05
      PHP version: 5.4.26-pl0-gentoo

      not correct function calcMaxLengthAfterDot. Example:

      ~ php -a
      Interactive shell

      php > include "include/graphs.inc.php";
      php > echo calcMaxLengthAfterDot(array("215 G")) . "\n";
      1
      php > echo calcMaxLengthAfterDot(array("46 G","46.5 G")) . "\n";
      0
      php > quit

      In the first case the value should be 0, in the second case - 1.

            Unassigned Unassigned
            noname Maks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: