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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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 @@
...
@@ -13,8 +13,8 @@
##############################################################################
##############################################################################
"""ZODB transfer activity monitoring
"""ZODB transfer activity monitoring
$Id: ActivityMonitor.py,v 1.
4 2002/10/09 15:11:25 shane
Exp $"""
$Id: ActivityMonitor.py,v 1.
5 2003/12/30 20:17:41 jeremy
Exp $"""
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
import
time
import
time
...
@@ -60,7 +60,6 @@ class ActivityMonitor:
...
@@ -60,7 +60,6 @@ class ActivityMonitor:
def
getActivityAnalysis
(
self
,
start
=
0
,
end
=
0
,
divisions
=
10
):
def
getActivityAnalysis
(
self
,
start
=
0
,
end
=
0
,
divisions
=
10
):
res
=
[]
res
=
[]
log
=
self
.
log
now
=
time
.
time
()
now
=
time
.
time
()
if
start
==
0
:
if
start
==
0
:
start
=
now
-
self
.
history_length
start
=
now
-
self
.
history_length
...
@@ -76,7 +75,6 @@ class ActivityMonitor:
...
@@ -76,7 +75,6 @@ class ActivityMonitor:
})
})
div
=
res
[
0
]
div
=
res
[
0
]
div_start
=
div
[
'start'
]
div_end
=
div
[
'end'
]
div_end
=
div
[
'end'
]
div_index
=
0
div_index
=
0
connections
=
0
connections
=
0
...
@@ -99,7 +97,6 @@ class ActivityMonitor:
...
@@ -99,7 +97,6 @@ class ActivityMonitor:
div_index
=
div_index
+
1
div_index
=
div_index
+
1
if
div_index
<
divisions
:
if
div_index
<
divisions
:
div
=
res
[
div_index
]
div
=
res
[
div_index
]
div_start
=
div
[
'start'
]
div_end
=
div
[
'end'
]
div_end
=
div
[
'end'
]
connections
=
connections
+
1
connections
=
connections
+
1
total_loads
=
total_loads
+
loads
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