Browse files

webui: minor cleanup

  • Loading branch information...
1 parent 575d2ba commit 884008eb0c57c95f1f6778e3d2d04c6ea8b11775 @ts2012 ts2012 committed Dec 14, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 webui/chunks.py
  2. +2 −2 webui/qfsstatus.py
View
2 webui/chunks.py
@@ -179,7 +179,7 @@ def __init__(self, mainColumnName, predefinedHeaders,monthly,dayly, hourly, curr
# self.monthlyData = SavedChunkDataList(60*60*24, 30)
# 1 entry per hour
# self.daylyData = SavedChunkDataList(60*60, 24, self.monthlyData)
-# 1 entry per 1-5 minutes
+# 1 entry per 2 minutes
# self.hourlyData = SavedChunkDataList(60*2, 30, self.daylyData)
# 1 entry per 10 sec
# self.latestData = SavedChunkDataList(10, 30, self.hourlyData, 0)
View
4 webui/qfsstatus.py
@@ -1064,7 +1064,7 @@ def printRackViewHTML(rack, servers, buffer):
def rackView(buffer, status):
splitServersByRack(status)
- numNodes = sum([len(v) for v in serversByRack.itervalues()])
+ numNodes = sum([len(v) for v in status.serversByRack.itervalues()])
print >> buffer, '''
<body class="oneColLiqCtr">
<div id="container">
@@ -1088,7 +1088,7 @@ def rackView(buffer, status):
</tr>
</table>
<hr>'''
- for rack, servers in serversByRack.iteritems():
+ for rack, servers in status.serversByRack.iteritems():
printRackViewHTML(rack, servers, buffer)
print >> buffer, '''

0 comments on commit 884008e

Please sign in to comment.