mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-23 09:03:40 +08:00
Decode function name as UTF-8
This commit is contained in:
+1
-1
@@ -129,7 +129,7 @@ if __name__ == '__main__':
|
||||
|
||||
tmp = sorted(countmap.items(), key=operator.itemgetter(1)) #, reverse=True)
|
||||
for k, v in tmp:
|
||||
print('{:05.2f}% {}'.format((v * 100.) / total, k))
|
||||
print('{:05.2f}% {}'.format((v * 100.) / total, k.decode('UTF-8')))
|
||||
# print('{:06.2f} clocks : {}'.format((v * 10500) / total, k))
|
||||
start = cur
|
||||
print('{} Samples'.format(total))
|
||||
|
||||
Reference in New Issue
Block a user