<s> """<STR_LIT>""" <EOL> import nova . conf <EOL> from nova . scheduler import weights <EOL> CONF = nova . conf . CONF <EOL> class DiskWeigher ( weights . BaseHostWeigher ) : <EOL> minval = <NUM_LIT:0> <EOL> def weight_multiplier ( self ) : <EOL> """<STR_LIT>""" <EOL> return CONF . disk_weight_multiplier <EOL> def _weigh_object ( self , host_state , weight_properties ) : <EOL> """<STR_LIT>""" <EOL> return host_state . free_disk_mb </s>
