def pprint_size(value):
    """Pretty-print size (with rounding)"""
    for postfix, limit in [("G", 1e9), ("M", 1e6), ("K", 1e3), ("", 1)]:
        if value >= limit:
            return "{}{}".format(int(value/limit), postfix)