From dcca2f41cca5abaca28fa9b322c718035e0d12be Mon Sep 17 00:00:00 2001 From: Glenn Elliott Date: Thu, 2 Oct 2014 14:07:09 -0400 Subject: fix bug --- rtss14/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rtss14/database.py') diff --git a/rtss14/database.py b/rtss14/database.py index c2597f6..8290128 100755 --- a/rtss14/database.py +++ b/rtss14/database.py @@ -458,7 +458,7 @@ def __store_sched_result(c, dp_id, ts_util, stats): stats.avg_tard, stats.avg_bandwidth) ) -def store_sched_result(c, dp_id, result): +def store_sched_result(conn, c, dp_id, result): done = False while not done: try: @@ -507,7 +507,7 @@ def store_sched_results(db_name, data, ndp = 0): id_and_data = sorted([(lookup_dp_id(c, d.dp), d) for d in data], key=lambda x: x[0]) for dp_id, result in id_and_data: - store_sched_result(c, dp_id, result) + store_sched_result(conn, c, dp_id, result) except db.OperationalError, e: print '(store_sched_results) Caught database exception.' -- cgit v1.2.2