aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2014-10-02 14:07:09 -0400
committerGlenn Elliott <gelliott@cs.unc.edu>2014-10-02 14:07:09 -0400
commitdcca2f41cca5abaca28fa9b322c718035e0d12be (patch)
treebc5c127573cdc17cbf9a9519e8b31501ff0295fa
parenta9e0c2a30411e282401082338e72baf4ddb81875 (diff)
fix bug
-rwxr-xr-xrtss14/database.py4
1 files changed, 2 insertions, 2 deletions
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):
458 stats.avg_tard, 458 stats.avg_tard,
459 stats.avg_bandwidth) ) 459 stats.avg_bandwidth) )
460 460
461def store_sched_result(c, dp_id, result): 461def store_sched_result(conn, c, dp_id, result):
462 done = False 462 done = False
463 while not done: 463 while not done:
464 try: 464 try:
@@ -507,7 +507,7 @@ def store_sched_results(db_name, data, ndp = 0):
507 id_and_data = sorted([(lookup_dp_id(c, d.dp), d) for d in data], key=lambda x: x[0]) 507 id_and_data = sorted([(lookup_dp_id(c, d.dp), d) for d in data], key=lambda x: x[0])
508 508
509 for dp_id, result in id_and_data: 509 for dp_id, result in id_and_data:
510 store_sched_result(c, dp_id, result) 510 store_sched_result(conn, c, dp_id, result)
511 511
512 except db.OperationalError, e: 512 except db.OperationalError, e:
513 print '(store_sched_results) Caught database exception.' 513 print '(store_sched_results) Caught database exception.'