Commit 570f612a authored by Jim Fulton's avatar Jim Fulton

Fixed database_size to return the number of objects (not bytes) in the

database.
parent b2cafe9b
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
__doc__='''Cache management support __doc__='''Cache management support
$Id: CacheManager.py,v 1.14 1999/07/14 11:41:25 jim Exp $''' $Id: CacheManager.py,v 1.15 1999/08/05 14:53:06 jim Exp $'''
__version__='$Revision: 1.14 $'[11:-2] __version__='$Revision: 1.15 $'[11:-2]
import Globals, time, sys import Globals, time, sys
...@@ -113,7 +113,7 @@ class CacheManager: ...@@ -113,7 +113,7 @@ class CacheManager:
except: except:
# BoboPOS2 # BoboPOS2
return len(Globals.Bobobase._jar.db.index)*4 return len(Globals.Bobobase._jar.db.index)*4
else: return db.getSize() else: return db.objectCount()
def cache_age(self): def cache_age(self):
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment