• Rune Juhl Jacobsen's avatar
    Handle unknown user in cachetop · 2933df58
    Rune Juhl Jacobsen authored
    If running on a system that uses cgroups the process owner uid may not exist on
    the host system and `pwd.getpwuid` throws a KeyError.
    
    This patch defaults to a uid of `UNKNOWN(id)` when we're unable to look up the
    username.
    2933df58
cachetop.py 7.16 KB