Skip to content

Commit 6ea32d1

Browse files
committed
minor bug fixes
1 parent 6a796bb commit 6ea32d1

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

benchMT

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,6 @@ class SLOTS_LIST:
11531153
dev_str = " NA"
11541154
else:
11551155
dev_str = " " + str(v.device)
1156-
dev_str = dev_str.ljust(7, ' ')
11571156
state_str = v.state
11581157
state_str = state_str.ljust(6, ' ')
11591158
if v.job == "":
@@ -1169,19 +1168,16 @@ class SLOTS_LIST:
11691168
if fileptr == sys.stdout:
11701169
if v.state == "ACTIVE":
11711170
#Blue
1172-
state_str = '\x1b[1;37;44m' +" "+ v.state.ljust(10,' ')[:10] + '\x1b[0m'
1171+
state_str = '\x1b[1;37;44m' + (" "+v.state).ljust(10,' ')[:10] + '\x1b[0m'
11731172
elif v.state == "EMPTY":
11741173
#Yellow
1175-
state_str = '\x1b[1;30;43m' + " "+v.state.ljust(10,' ')[:10] + '\x1b[0m'
1174+
state_str = '\x1b[1;30;43m' + (" "+v.state).ljust(10,' ')[:10] + '\x1b[0m'
11761175
else:
11771176
state_str = v.state.ljust(10,' ')[:10]
11781177

11791178
if compact_flag == False :
11801179
print("├─".ljust(5,'─'), "─".ljust(3,'─'), "─".ljust(3,'─'), "─".ljust(40,'─'), "─".ljust(30,'─'),
11811180
"─".ljust(10,'─'), "─".ljust(10,'─') + "┤", file=fileptr, sep="┼")
1182-
#print("│" + slotnum_str.ljust(4,' '), v.platform.ljust(3,' ')[:3], slotnum_str.ljust(3,' '), app_str.ljust(40,' ')[:40],
1183-
#app_arg_str.ljust(30,' ')[:30], wu_name_str.ljust(10,' ')[:10], v.state.ljust(10,' ')[:10] +
1184-
#"│", file=fileptr, sep="│")
11851181
print("│" + slotnum_str.ljust(4,' '), v.platform.ljust(3,' ')[:3], dev_str.ljust(3,' '), app_str.ljust(40,' ')[:40],
11861182
app_arg_str.ljust(30,' ')[:30], wu_name_str.ljust(10,' ')[:10], state_str + "│", file=fileptr, sep="│")
11871183

@@ -1439,8 +1435,8 @@ def main():
14391435
if(os.path.isdir(env.summary_path) == False):
14401436
print("Failed to make benchMT testData subdir [", env.summary_path,"]")
14411437
exit(-1)
1442-
env.sum_file_ptr = open(env.summary_file, 'w')
1443-
env.psv_file_ptr = open(env.psv_file, 'w')
1438+
env.sum_file_ptr = open(env.summary_file, 'w', 1)
1439+
env.psv_file_ptr = open(env.psv_file, 'w', 1)
14441440
print(__program_name__ + " " + __version__ + " \u2015 SETI MB Benchmarking Utility \u2015 Linux edition\n",
14451441
file=env.sum_file_ptr)
14461442
if args.noBS == False:

0 commit comments

Comments
 (0)