Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
21
Merge Requests
21
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
6976b1d5
Commit
6976b1d5
authored
Apr 06, 2018
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
collect.reporter: fix non existing method and missing argument in __init__
parent
c55360fa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
slapos/collect/reporter.py
slapos/collect/reporter.py
+4
-4
No files found.
slapos/collect/reporter.py
View file @
6976b1d5
...
...
@@ -199,7 +199,7 @@ class ConsumptionReport(ConsumptionReportBase):
self
.
db
=
database
self
.
user_list
=
user_list
self
.
location
=
location
ConsumptionReportBase
.
__init__
(
self
.
db
)
ConsumptionReportBase
.
__init__
(
self
,
self
.
db
)
def
buildXMLReport
(
self
,
date_scope
):
...
...
@@ -257,7 +257,7 @@ class ConsumptionReport(ConsumptionReportBase):
category
=
""
)
for
user
in
self
.
user_list
:
partition_cpu_load_percent
=
self
.
_
getPartitionCPULoadAverage
(
user
,
date_scope
)
partition_cpu_load_percent
=
self
.
getPartitionCPULoadAverage
(
user
,
date_scope
)
if
partition_cpu_load_percent
is
not
None
:
journal
.
newMovement
(
transaction
,
resource
=
"service_module/cpu_load_percent"
,
...
...
@@ -268,7 +268,7 @@ class ConsumptionReport(ConsumptionReportBase):
mb
=
float
(
2
**
20
)
for
user
in
self
.
user_list
:
partition_memory_used
=
self
.
_
getPartitionUsedMemoryAverage
(
user
,
date_scope
)
partition_memory_used
=
self
.
getPartitionUsedMemoryAverage
(
user
,
date_scope
)
if
partition_memory_used
is
not
None
:
journal
.
newMovement
(
transaction
,
resource
=
"service_module/memory_used"
,
...
...
@@ -278,7 +278,7 @@ class ConsumptionReport(ConsumptionReportBase):
category
=
""
)
for
user
in
self
.
user_list
:
partition_disk_used
=
self
.
_
getPartitionDiskUsedAverage
(
user
,
date_scope
)
partition_disk_used
=
self
.
getPartitionDiskUsedAverage
(
user
,
date_scope
)
if
partition_disk_used
is
not
None
:
journal
.
newMovement
(
transaction
,
resource
=
"service_module/disk_used"
,
...
...
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