diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-07-17 15:42:58 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-07-17 15:42:58 +0200 |
commit | f519d3c9500e4b5a56f8400f18e97dcc70a8718c (patch) | |
tree | e19ba9b47b81a179b5762a1244d905be4edb7f2f /lib | |
parent | af4cc108b5c5132a991a2b83d258ed55e985936f (diff) |
Bugfixes in edge cases
Diffstat (limited to 'lib')
-rw-r--r-- | lib/loader.py | 2 | ||||
-rw-r--r-- | lib/runner.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/loader.py b/lib/loader.py index 4e07c92..57b3d30 100644 --- a/lib/loader.py +++ b/lib/loader.py @@ -481,7 +481,7 @@ class RawData: if sorted(online_trace_part["parameter"].keys()) != self._parameter_names: processed_data[ "error" - ] = "Offline #{off_idx:d} (online {on_name:s} @ {on_idx:d}/{on_sub:d}) has inconsistent parameter set: should be {param_want:s}, is {param_is:s}".format( + ] = "Offline #{off_idx:d} (online {on_name:s} @ {on_idx:d}/{on_sub:d}) has inconsistent parameter set: should be {param_want}, is {param_is}".format( off_idx=offline_idx, on_idx=online_run_idx, on_sub=online_trace_part_idx, diff --git a/lib/runner.py b/lib/runner.py index 77b7c68..96569a8 100644 --- a/lib/runner.py +++ b/lib/runner.py @@ -419,7 +419,7 @@ def sleep_ms(duration: int, arch: str, cpu_freq: int = None) -> str: if tail_sleep > 0: ret += f"arch.sleep_ms({tail_sleep});\n" return ret - return "arch.sleep_ms({duration});\n" + return f"arch.sleep_ms({duration});\n" def get_counter_limits_us(arch: str) -> tuple: |