environment/lib/python2.7/site-packages/psutil/_common.py
def usage_percent(used, total, _round=None):
    """Calculate percentage usage of 'used' against 'total'."""
    try:
        ret = (used / total) * 100
    except ZeroDivisionError:
        ret = 0
    if _round is not None:
        return round(ret, _round)
    else:
        return ret
def usage_percent(used, total, _round=None):
    try:
        ret = (used / total) * 100
    except ZeroDivisionError:
        ret = 0
    if _round is not None:
        return round(ret, _round)
    else:
        return ret
def usage_percent ( used , total , _round = None ) : try : ret = ( used / total ) * 100 except ZeroDivisionError : ret = 0 if _round is not None : return round ( ret , _round ) else : return ret
Calculate percentage usage of 'used' against 'total'.
Calculate percentage usage of used against total .