|
@@ 91-95 (lines=5) @@
|
| 88 |
|
$quotas[$i]['byte_used'] = $thisline[1] * 1024; |
| 89 |
|
$quotas[$i]['byte_soft'] = $thisline[2] * 1024; |
| 90 |
|
$quotas[$i]['byte_hard'] = $thisline[3] * 1024; |
| 91 |
|
if ($thisline[3] != 0) { |
| 92 |
|
$quotas[$i]['byte_percent_used'] = round((($quotas[$i]['byte_used'] / $quotas[$i]['byte_hard']) * 100), 1); |
| 93 |
|
} else { |
| 94 |
|
$quotas[$i]['byte_percent_used'] = 0; |
| 95 |
|
} |
| 96 |
|
$quotas[$i]['file_used'] = $thisline[4]; |
| 97 |
|
$quotas[$i]['file_soft'] = $thisline[5]; |
| 98 |
|
$quotas[$i]['file_hard'] = $thisline[6]; |
|
@@ 99-103 (lines=5) @@
|
| 96 |
|
$quotas[$i]['file_used'] = $thisline[4]; |
| 97 |
|
$quotas[$i]['file_soft'] = $thisline[5]; |
| 98 |
|
$quotas[$i]['file_hard'] = $thisline[6]; |
| 99 |
|
if ($thisline[6] != 0) { |
| 100 |
|
$quotas[$i]['file_percent_used'] = round((($quotas[$i]['file_used'] / $quotas[$i]['file_hard']) * 100), 1); |
| 101 |
|
} else { |
| 102 |
|
$quotas[$i]['file_percent_used'] = 0; |
| 103 |
|
} |
| 104 |
|
$i++; |
| 105 |
|
} |
| 106 |
|
} |