From e9a896c736e8eac8402d6d94bce0c3962950ef62 Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 11 Sep 2009 18:09:38 -0400 Subject: [PATCH] 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 --- src/conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conf.py b/src/conf.py index a82b91fd9..2ca991fd7 100644 --- a/src/conf.py +++ b/src/conf.py @@ -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.