Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
autoca
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ai
autoca
Commits
6b20826c
Commit
6b20826c
authored
13 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
return quickly if there is nothing to aggregate
parent
7e8d9545
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
autovpn/acct.py
+4
-0
4 additions, 0 deletions
autovpn/acct.py
with
4 additions
and
0 deletions
autovpn/acct.py
+
4
−
0
View file @
6b20826c
...
@@ -51,6 +51,10 @@ class Accounting(object):
...
@@ -51,6 +51,10 @@ class Accounting(object):
aggr_day
[
attr
]
+=
conn_info
[
attr
]
aggr_day
[
attr
]
+=
conn_info
[
attr
]
pipe
.
execute
()
pipe
.
execute
()
# Short return if there's nothing to do.
if
not
aggr
:
return
# Aggregate values on the master server.
# Aggregate values on the master server.
days
=
aggr
.
keys
()
days
=
aggr
.
keys
()
aggr_key
=
'
aggr:%s
'
%
cn
aggr_key
=
'
aggr:%s
'
%
cn
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment