Commit 0a34d1e6 authored by Brenden Blanco's avatar Brenden Blanco Committed by GitHub

Merge pull request #972 from r4f4/fix-llcstat

llcstat: fix TypeError on python3
parents eec07318 f2e6b8d2
......@@ -104,7 +104,7 @@ for (k, v) in b.get_table('ref_count').items():
# This happens on some PIDs due to missed counts caused by sampling
hit = (v.value - miss) if (v.value >= miss) else 0
print('{:<8d} {:<16s} {:<4d} {:>12d} {:>12d} {:>6.2f}%'.format(
k.pid, k.name, k.cpu, v.value, miss,
k.pid, k.name.decode(), k.cpu, v.value, miss,
(float(hit) / float(v.value)) * 100.0))
print('Total References: {} Total Misses: {} Hit Rate: {:.2f}%'.format(
tot_ref, tot_miss, (float(tot_ref - tot_miss) / float(tot_ref)) * 100.0))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment