Subversion Repositories ALCASAR

Rev

Rev 2809 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2809 Rev 3091
Line 131... Line 131...
131
						$trafficData[$i]['tx'] = formatSize($traffic['tx'], $this->vnstatJsonVersion);
131
						$trafficData[$i]['tx'] = formatSize($traffic['tx'], $this->vnstatJsonVersion);
132
						$trafficData[$i]['total'] = formatSize(($traffic['rx'] + $traffic['tx']), $this->vnstatJsonVersion);
132
						$trafficData[$i]['total'] = formatSize(($traffic['rx'] + $traffic['tx']), $this->vnstatJsonVersion);
133
					}
133
					}
134
				}
134
				}
135
 
135
 
136
                                usort($trafficData, sortingFunction);
136
                               // usort($trafficData, sortingFunction);
137
 
137
 
138
			} else if ($type == 'graph') {
138
			} else if ($type == 'graph') {
139
				foreach ($this->vnstatData['interfaces'][$arrayIndex]['traffic']['hour'.$typeAppend] as $traffic) {
139
				foreach ($this->vnstatData['interfaces'][$arrayIndex]['traffic']['hour'.$typeAppend] as $traffic) {
140
					if (is_array($traffic)) {
140
					if (is_array($traffic)) {
141
						$i++;
141
						$i++;