Fix pcsort message format to be consistent cross language (#13936)
This commit is contained in:
1 parent
d951623027
commit
5ac06838cd
3 files changed
+4
-2
No files matched your search
@@ -163,6 +163,8 @@ def main():
|
||||
config[device]['PERF_COUNT'] = 'YES'
|
||||
elif is_flag_set_in_command_line('pcsort'):
|
||||
## set to default value
|
||||
logger.warning(f"Turn on performance counters for {device} device " +
|
||||
f"since pcsort value is {args.perf_counts_sort}.")
|
||||
config[device]['PERF_COUNT'] = 'YES' if args.perf_counts_sort else 'NO'
|
||||
else:
|
||||
## set to default value
|
||||
|
||||
@@ -372,7 +372,7 @@ def print_detail_result(result_list):
|
||||
cpu_time = tmp_result[4]
|
||||
real_proportion = "%.2f"%(tmp_result[5]*100)
|
||||
if real_proportion == "0.00":
|
||||
real_proportion = "-nan"
|
||||
real_proportion = "N/A"
|
||||
execType = tmp_result[6]
|
||||
print(f"{node_name[:max_layer_name - 4] + '...' if (len(node_name) >= max_layer_name) else node_name:<30}"
|
||||
f"{str(layerStatus):<20}"
|
||||
|
||||
Reference in new issue
Block a user