[Zope-Checkins] CVS: Zope/lib/python/App - CacheManager.py:1.27
Shane Hathaway
shane@cvs.zope.org
Wed, 9 Oct 2002 11:11:56 -0400
Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv25287/App
Modified Files:
CacheManager.py
Log Message:
The database activity chart now shows the number of connections in a period
in addition to the loads and stores.
=== Zope/lib/python/App/CacheManager.py 1.26 => 1.27 ===
--- Zope/lib/python/App/CacheManager.py:1.26 Wed Aug 14 17:31:40 2002
+++ Zope/lib/python/App/CacheManager.py Wed Oct 9 11:11:25 2002
@@ -295,11 +295,13 @@
total_load_count = 0
total_store_count = 0
+ total_connections = 0
limit = 0
divs = []
for div in analysis:
total_store_count = total_store_count + div['stores']
total_load_count = total_load_count + div['loads']
+ total_connections = total_connections + div['connections']
sum = div['stores'] + div['loads']
if sum > limit:
limit = sum
@@ -340,6 +342,7 @@
'trans_len': max(segment_height - store_len - load_len, 0),
'store_count': div['stores'],
'load_count': div['loads'],
+ 'connections': div['connections'],
'start': div['start'],
'end': div['end'],
'time_offset': time_offset,
@@ -357,6 +360,7 @@
'divs': divs,
'total_store_count': total_store_count,
'total_load_count': total_load_count,
+ 'total_connections': total_connections,
}
return res