Commits

Charlie Clark  committed 2a3aabe

Reordered values for trends.

  • Participants
  • Parent commits 5024d8b

Comments (0)

Files changed (1)

File httparchive/httparchive/views/site_gviz.py

         table.add_column("Total Requests", int)
         table.add_column("Total Transfer Size", int)
         for r in self.trends:
-            table.append([r.labelDate, int(r.reqTotal), int(r.bytesTotal)])
+            table.append([r.labelDate, int(r.bytesTotal), int(r.reqTotal)])
         return encoder.encode(table)
 
     @property
         table.add_column("HTML Transfer Size", int)
         table.add_column("HTML Requests", int)
         for r in self.trends:
-            table.append([r.labelDate, int(r.reqHTML), int(r.bytesHTML)])
+            table.append([r.labelDate, int(r.bytesHTML), int(r.reqHTML)])
         return encoder.encode(table)
 
     @property
         table.add_column("JS Transfer Size", int)
         table.add_column("JS Requests", int)
         for r in self.trends:
-            table.append([r.labelDate, int(r.reqJS), int(r.bytesJS)])
+            table.append([r.labelDate, int(r.bytesJS), int(r.reqJS)])
         return encoder.encode(table)
 
     @property
         table.add_column("CSS Transfer Size", int)
         table.add_column("CSS Requests", int)
         for r in self.trends:
-            table.append([r.labelDate, int(r.reqCSS), int(r.bytesCSS)])
+            table.append([r.labelDate, int(r.bytesCSS), int(r.reqCSS)])
         return encoder.encode(table)
 
     @property
         table.add_column("Image Transfer Size", int)
         table.add_column("Image Requests", int)
         for r in self.trends:
-            table.append([r.labelDate, int(r.reqImg), int(r.bytesImg)])
+            table.append([r.labelDate, int(r.bytesImg), int(r.reqImg)])
         return encoder.encode(table)
 
     @property
         table.add_column("Flash Transfer Size", int)
         table.add_column("Flash Requests", int)
         for r in self.trends:
-            table.append([r.labelDate, int(r.reqFlash), int(r.bytesFlash)])
+            table.append([r.labelDate, int(r.bytesFlash), int(r.reqFlash)])
         return encoder.encode(table)