Clarify databases.types.cdb.maximumModifications' help and use a proper type.

The code expects a float between 0 and 1 inclusive but was simply using
registry.Float.  registry.Probability matches the behavior we want.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
James Vega 2009-09-11 18:09:38 -04:00
parent 28b4b4742e
commit e9a896c736
1 changed files with 3 additions and 3 deletions

View File

@ -867,9 +867,9 @@ registerGroup(supybot.databases, 'types')
registerGlobalValue(supybot.databases.types, 'cdb', CDB(True, """Determines registerGlobalValue(supybot.databases.types, 'cdb', CDB(True, """Determines
whether CDB databases will be allowed as a database implementation.""")) whether CDB databases will be allowed as a database implementation."""))
registerGlobalValue(supybot.databases.types.cdb, 'maximumModifications', registerGlobalValue(supybot.databases.types.cdb, 'maximumModifications',
registry.Float(0.5, """Determines how often CDB databases will have their registry.Probability(0.5, """Determines how often CDB databases will have
modifications flushed to disk. When the number of modified records is their modifications flushed to disk. When the number of modified records
greater than this part of the number of unmodified records, the database is greater than this fraction of the total number of records, the database
will be entirely flushed to disk.""")) will be entirely flushed to disk."""))
# XXX Configuration variables for dbi, sqlite, flat, mysql, etc. # XXX Configuration variables for dbi, sqlite, flat, mysql, etc.