Fixed Formatting
This commit is contained in:
parent
df2dbb6683
commit
cd36ff9803
|
@ -495,12 +495,14 @@ def handle_result_files(session, files):
|
||||||
for tunable_knob in last_conf.keys():
|
for tunable_knob in last_conf.keys():
|
||||||
if tunable_knob in knob:
|
if tunable_knob in knob:
|
||||||
unit = KnobCatalog.objects.get(dbms=session.dbms, name=knob).unit
|
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:
|
if unit == 1:
|
||||||
data_knobs[knob] = ConversionUtil.get_raw_size(last_conf[tunable_knob],
|
data_knobs[knob] = ConversionUtil.get_raw_size(last_conf[tunable_knob],
|
||||||
ConversionUtil.DEFAULT_BYTES_SYSTEM)
|
bytes_system)
|
||||||
elif unit == 2:
|
elif unit == 2:
|
||||||
data_knobs[knob] = ConversionUtil.get_raw_size(last_conf[tunable_knob],
|
data_knobs[knob] = ConversionUtil.get_raw_size(last_conf[tunable_knob],
|
||||||
ConversionUtil.DEFAULT_TIME_SYSTEM)
|
time_system)
|
||||||
else:
|
else:
|
||||||
data_knobs[knob] = last_conf[tunable_knob]
|
data_knobs[knob] = last_conf[tunable_knob]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue