add configurable frequency

This commit is contained in:
Cort Buffington 2015-06-30 20:56:00 -05:00
parent 9ac48cac3f
commit 96d0f11615
1 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,9 @@ from binascii import b2a_hex as h
# This is the only user-configuration necessary
# Tell the program where the pickle file is
# Tell the program how often to print a report
stat_file = '../dmrlink_stats.pickle'
frequency = 30
def int_id(_hex_string):
@ -49,5 +51,5 @@ def print_stats():
if __name__ == '__main__':
output_stats = task.LoopingCall(print_stats)
output_stats.start(10)
output_stats.start(frequency)
reactor.run()