Fixed lint error & style
Change-Id: Icc87821dac3d1145bde8279e40a2a69be0cbbf92
diff --git a/cache_warming/cache_warming.py b/cache_warming/cache_warming.py
index 97e6cba..5ef444c 100644
--- a/cache_warming/cache_warming.py
+++ b/cache_warming/cache_warming.py
@@ -175,7 +175,7 @@
load_hosts()
except ValueError as e:
if verbose:
- print 'Failed to open %s: %s.' % (HOSTS_JSON_PATH,e)
+ print 'Failed to open %s: %s.' % (HOSTS_JSON_PATH, e)
save_hosts(hit_log)
server_address = UDP_SERVER_PATH
@@ -193,7 +193,7 @@
while 1:
diff = datetime.now() - last_fetch
- if diff.total_seconds() > 60:
+ if diff.total_seconds() > FETCH_INTERVAL:
warm_cache(args.port, args.server)
data = sock.recv(128)
process_query(data)