Revision 54878c54

b/lib/storage.py
102 102
    values = []
103 103

  
104 104
    # Pre-calculate information in case it's requested more than once
105
    if COL_SIZE in fields:
105
    if COL_USED in fields:
106 106
      dirsize = utils.CalculateDirectorySize(path)
107 107
    else:
108 108
      dirsize = None
......
116 116
      if field_name == COL_NAME:
117 117
        values.append(path)
118 118

  
119
      elif field_name == COL_SIZE:
119
      elif field_name == COL_USED:
120 120
        values.append(dirsize)
121 121

  
122 122
      elif field_name == COL_FREE:

Also available in: Unified diff