conga/ricci/modules/storage VG.cpp
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL4
Changes by: kupcevic at sourceware.org 2007-03-30 15:42:13
Modified files:
ricci/modules/storage: VG.cpp
Log message:
storage module: display unused size left in Volume Groups
ricci/modules/storage/VG.cpp +4 -2
@@ -106,6 +106,10 @@ _props.get("extents_total").get_int() * _props.get("extent_size").get_int(); _props.set(Variable("size", size)); + long long free_size = + _props.get("extents_free").get_int() * _props.get("extent_size").get_int(); + _props.set(Variable("size_free", free_size)); + bool rem = true; for (list<counting_auto_ptr<BD> >::const_iterator iter = targets.begin(); iter != targets.end();
@@ -128,8 +132,6 @@ // ### new targets ### - long long free_size = - _props.get("extents_free").get_int() * _props.get("extent_size").get_int(); if (free_size == 0) return;