X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=lbs.py;h=b8de982e8652d45c0e5e52de987ee59def5fd456;hb=de1d2429b83c89a0373599d19cc6c6cac40b2203;hp=ee4f4454c133287e57251a4e563774c4262081a2;hpb=260aaf269765b6fdf0c74ec51615e38a70b27fa3;p=cumulus.git diff --git a/lbs.py b/lbs.py index ee4f445..b8de982 100644 --- a/lbs.py +++ b/lbs.py @@ -583,9 +583,11 @@ class LocalDatabase: info.mtime = row[3] info.age_days = row[4] - # If age is not available for whatever reason, treat it as 0.0. + # If data is not available for whatever reason, treat it as 0.0. if info.age_days is None: info.age_days = 0.0 + if info.used_bytes is None: + info.used_bytes = 0.0 # Benefit calculation: u is the estimated fraction of each segment # which is utilized (bytes belonging to objects still in use