Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
18269eb4
Commit
18269eb4
authored
Dec 30, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused local variables.
parent
c16d2599
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
src/ZODB/ActivityMonitor.py
src/ZODB/ActivityMonitor.py
+2
-5
No files found.
src/ZODB/ActivityMonitor.py
View file @
18269eb4
...
...
@@ -13,8 +13,8 @@
##############################################################################
"""ZODB transfer activity monitoring
$Id: ActivityMonitor.py,v 1.
4 2002/10/09 15:11:25 shane
Exp $"""
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
$Id: ActivityMonitor.py,v 1.
5 2003/12/30 20:17:41 jeremy
Exp $"""
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
import
time
...
...
@@ -60,7 +60,6 @@ class ActivityMonitor:
def
getActivityAnalysis
(
self
,
start
=
0
,
end
=
0
,
divisions
=
10
):
res
=
[]
log
=
self
.
log
now
=
time
.
time
()
if
start
==
0
:
start
=
now
-
self
.
history_length
...
...
@@ -76,7 +75,6 @@ class ActivityMonitor:
})
div
=
res
[
0
]
div_start
=
div
[
'start'
]
div_end
=
div
[
'end'
]
div_index
=
0
connections
=
0
...
...
@@ -99,7 +97,6 @@ class ActivityMonitor:
div_index
=
div_index
+
1
if
div_index
<
divisions
:
div
=
res
[
div_index
]
div_start
=
div
[
'start'
]
div_end
=
div
[
'end'
]
connections
=
connections
+
1
total_loads
=
total_loads
+
loads
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment