diff server/ts.py @ 335:1e22eaf93620

work on web interface
author Matt Johnston <matt@ucc.asn.au>
date Tue, 12 Jun 2012 23:27:53 +0800
parents 3b821541657d
children e18d7e89c17d
line wrap: on
line diff
--- a/server/ts.py	Tue Jun 12 00:35:23 2012 +0800
+++ b/server/ts.py	Tue Jun 12 23:27:53 2012 +0800
@@ -110,7 +110,7 @@
     return int(next_wake)
 
 def send_results(lines):
-    enc_lines = binascii.b2a_base64('\n'.join(lines))
+    enc_lines = binascii.b2a_base64(zlib.compress('\n'.join(lines)))
     hmac.new(config.HMAC_KEY, enc_lines).hexdigest()
 
     url_data = urllib.url_encode( ('lines', enc_lines), ('hmac', mac) )