From b42a5383295861c8fa807f1ad3c2b6a870b66231 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sun, 1 Nov 2009 16:12:22 +0000 Subject: [PATCH] Better HTML --- Src/network-broker/stats.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Src/network-broker/stats.py b/Src/network-broker/stats.py index b298484..cd111af 100644 --- a/Src/network-broker/stats.py +++ b/Src/network-broker/stats.py @@ -40,9 +40,9 @@ class HtmlGenerator: outf.write("\n") outf.write("

Frodo-Wii network statistics

\n") - outf.write("The total number of connections is %d
\n" % (self.container.total_connections)) + outf.write("The total number of connections is %d

\n" % (self.container.total_connections)) outf.write("\n") - outf.write("\n" % + outf.write("\n" % (len(self.container.last_10)) ) cnt = 0 @@ -51,16 +51,18 @@ class HtmlGenerator: if cnt % 4 == 0: cur = cnt images = "" % (cur, cur + 1, cur + 2, cur + 3) - outf.write("%s\n" % (item, images) ) + outf.write("%s\n" % (item, images) ) cnt = cnt + 1 + outf.write("") outf.write("

Last %d connections

Random screenshots

Last %d connections

 

Random screenshots

%s
%s 
 
\n") - outf.write("\n") + outf.write("

\n") outf.write("\n") count = 1 for country, num in sorted_countries: - outf.write("%3d. %s (%d)
\n" % (count, country, num) ) + outf.write("\n" % (count, country, num) ) count = count + 1 + outf.write("

Country list

%3d %s (%d)
\n") outf.write("\n")