• Rafael Fonseca's avatar
    filetop: Fix TypeError by not mixing bytes and str. · 29392650
    Rafael Fonseca authored
    When executing the filetop command tool, the following message was
    generated:
    
    Traceback (most recent call last):
      File "/usr/share/bcc/tools/filetop", line 190, in <module>
        name = name[:-3] + "..."
    TypeError: can't concat bytes to str
    
    Also, by decoding the bytes we print the strings without a leading "b'"
    making the output more readable.
    29392650
filetop.py 5.52 KB