Commit a72fae8a authored by Leo Iannacone's avatar Leo Iannacone

fix association between data and distribution

parent 9034405d
...@@ -211,6 +211,10 @@ function Page_History() { ...@@ -211,6 +211,10 @@ function Page_History() {
continue; continue;
} }
distributions.push(distribution); distributions.push(distribution);
}
distributions.sort();
for (var i = 0; i < distributions.length; i++) {
distribution = distributions[i];
for (var subdir in socket_data[distribution]) { for (var subdir in socket_data[distribution]) {
if (subdir == 'size') { if (subdir == 'size') {
total_sizes[distribution] = socket_data[distribution].size; total_sizes[distribution] = socket_data[distribution].size;
...@@ -221,13 +225,9 @@ function Page_History() { ...@@ -221,13 +225,9 @@ function Page_History() {
data[subdir] = []; data[subdir] = [];
} }
data[subdir].push(socket_data[distribution][subdir]); data[subdir].push(socket_data[distribution][subdir]);
} }
} }
for (i = 0; i < subdirs.length; i++) {
distributions.sort();
for (var i = 0; i < subdirs.length; i++) {
series.push({ series.push({
name: subdirs[i], name: subdirs[i],
data: data[subdirs[i]] data: data[subdirs[i]]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment