Florian Schaal
2015-02-15 54afe0e3036f339e623e98f5d3fbb397376c7ca2
interface/web/dashboard/dashlets/limits.php
@@ -105,7 +105,9 @@
         'db_table' => 'client',
         'db_where' => "");
      $limits[] = array('field' => 'limit_domain',
         'db_table' => 'domain',
         'db_where' => "");
      //* Loading Template
@@ -141,10 +143,15 @@
         }
         if($value != 0 || $value == $wb['unlimited_txt']) {
            $value_formatted = ($value == '-1')?$wb['unlimited_txt']:$value;
            $usage = $this->_get_limit_usage($limit);
            $percentage = ($value == '-1' || $value == 0 ? 0 : round(100 * $usage / $value));
            $rows[] = array('field' => $field,
               'field_txt' => $wb[$field.'_txt'],
               'value' => $value_formatted,
               'usage' => $this->_get_limit_usage($limit));
               'value_raw' => $value,
               'usage' => $usage,
               'usage_raw' => $usage,
               'percentage' => $percentage);
         }
      }
      $tpl->setLoop('rows', $rows);