diff options
Diffstat (limited to 'rtss14/database.py')
| -rwxr-xr-x | rtss14/database.py | 4 |
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 | ||
| 461 | def store_sched_result(c, dp_id, result): | 461 | def 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.' |
