mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-03 16:39:25 +01:00
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:
parent
28b4b4742e
commit
e9a896c736
@ -867,9 +867,9 @@ registerGroup(supybot.databases, 'types')
|
||||
registerGlobalValue(supybot.databases.types, 'cdb', CDB(True, """Determines
|
||||
whether CDB databases will be allowed as a database implementation."""))
|
||||
registerGlobalValue(supybot.databases.types.cdb, 'maximumModifications',
|
||||
registry.Float(0.5, """Determines how often CDB databases will have their
|
||||
modifications flushed to disk. When the number of modified records is
|
||||
greater than this part of the number of unmodified records, the database
|
||||
registry.Probability(0.5, """Determines how often CDB databases will have
|
||||
their modifications flushed to disk. When the number of modified records
|
||||
is greater than this fraction of the total number of records, the database
|
||||
will be entirely flushed to disk."""))
|
||||
|
||||
# XXX Configuration variables for dbi, sqlite, flat, mysql, etc.
|
||||
|
Loading…
Reference in New Issue
Block a user