From 81a40bca3d8e7e8f3876d21d8995c54a35504786 Mon Sep 17 00:00:00 2001 From: Crista Lopes Date: Thu, 2 Jan 2014 09:12:06 -0800 Subject: [PATCH] Minor --- 32-reactive/tf-32.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/32-reactive/tf-32.py b/32-reactive/tf-32.py index fdc2b9a..5c36997 100755 --- a/32-reactive/tf-32.py +++ b/32-reactive/tf-32.py @@ -22,7 +22,6 @@ class FreqObserver(threading.Thread): while not self._end: self._update_view() sleep(0.1) - self._update_view() def stop(self): self._end = True @@ -43,8 +42,8 @@ class FreqObserver(threading.Thread): sys.stdout.flush() data_str = "" - for tf in tuples: - data_str += str(tf[0]) + ' - ' + str(tf[1]) + '\n' + for (w, c) in tuples: + data_str += str(w) + ' - ' + str(c) + '\n' refresh_screen(data_str) #