from view_common import * class SimulatorView(View): def get(self, request, **kwargs): sim = json.loads(file("/tmp/simulator.json","r").read()) text = "
" text += "Iteration: %dsite | trend | weight | bytes_sent | hot |
---|---|---|---|---|
%s | %0.2f | %0.2f | %d | %0.2f | " % \ (site["name"], site["trend"], site["weight"], site["bytes_sent"], site["load_frac"]) text += "