Fixed Formatting

This commit is contained in:
arifiorino 2019-12-03 22:01:59 +00:00 committed by Dana Van Aken
parent df2dbb6683
commit cd36ff9803
2 changed files with 9 additions and 7 deletions

View File

@ -495,12 +495,14 @@ def handle_result_files(session, files):
for tunable_knob in last_conf.keys():
if tunable_knob in knob:
unit = KnobCatalog.objects.get(dbms=session.dbms, name=knob).unit
bytes_system = ConversionUtil.DEFAULT_BYTES_SYSTEM
time_system = ConversionUtil.DEFAULT_TIME_SYSTEM
if unit == 1:
data_knobs[knob] = ConversionUtil.get_raw_size(last_conf[tunable_knob],
ConversionUtil.DEFAULT_BYTES_SYSTEM)
bytes_system)
elif unit == 2:
data_knobs[knob] = ConversionUtil.get_raw_size(last_conf[tunable_knob],
ConversionUtil.DEFAULT_TIME_SYSTEM)
time_system)
else:
data_knobs[knob] = last_conf[tunable_knob]