conga/luci/site/luci/Extensions StorageReport.py
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: rmccabe at sourceware.org 2007-08-09 02:18:39
Modified files:
luci/site/luci/Extensions: StorageReport.py
Log message:
Fix 250834
luci/site/luci/Extensions/StorageReport.py +1 -1
@@ -2060,7 +2060,7 @@ length_in_bytes = 0 for t in mapper_data['sources']: length_in_bytes += int(t['props']['size']['value']) - ppb = (length * 1.0) / length_in_bytes # pixels per byte + ppb = (length * 1.0) / max(0.00001, length_in_bytes) # pixels per byte lower_cyl['offset'] = int(lower_cyl['offset'] * ppb) for d in lower_cyl['cyls']: d['beg'] = int(d['beg'] * ppb)