def format_leaks(result):
    if result.objgraph.comparison:
        return ('%d objs (/%d)' % (sum((leak[(- 1)] for leak in result.objgraph.comparison)), result.objgraph.count))
    elif (result.malloc.comparison and (result.malloc.count < result.malloc.comparison[0].size_diff)):
        return ('%d bytes (/%d)' % (result.malloc.comparison[0].size_diff, result.malloc.count))
    else:
        return '-'
def format_leaks(result):
    if result.objgraph.comparison:
        return ('%d objs (/%d)' % (sum((leak[(- 1)] for leak in result.objgraph.comparison)), result.objgraph.count))
    elif (result.malloc.comparison and (result.malloc.count < result.malloc.comparison[0].size_diff)):
        return ('%d bytes (/%d)' % (result.malloc.comparison[0].size_diff, result.malloc.count))
    else:
        return '-'