xaver
2012-02-28 b4daebfaff3a7cfb84f5700de0fda1c4dc943a03
server/lib/classes/monitor_tools.inc.php
@@ -241,10 +241,12 @@
                  $data['user'][$username]['used'] += $s[2];
                  $data['user'][$username]['soft'] += $s[3];
                  $data['user'][$username]['hard'] += $s[4];
                  $data['user'][$username]['files'] += $s[5];
               } else {
                  $data['user'][$username]['used'] = $s[2];
                  $data['user'][$username]['soft'] = $s[3];
                  $data['user'][$username]['hard'] = $s[4];
                  $data['user'][$username]['files'] = $s[5];
               }
            }
         }
@@ -1020,7 +1022,7 @@
            /*
             * Fetch the output
             */
            $data['output'] = shell_exec('mpt-status --autoload -n');
            $data['output'] = shell_exec('mpt-status --autoload');
            /*
             * Then calc the state.
@@ -1032,7 +1034,7 @@
                  * The output contains information for every RAID and every HDD.
                  * We only need the state of the RAID
                  */
                  if (strpos($item, 'raidlevel:') !== false) {
                  if (strpos($item, 'state ') !== false) {
                     /*
                     * We found a raid, process the state of it
                     */