Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
energy
bmon
Commits
9a9f9ef1
Commit
9a9f9ef1
authored
Feb 05, 2015
by
Alan Mitchell
Browse files
Fixed Problem appending performance stats.
parent
a6e78433
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bmsapp/views.py
bmsapp/views.py
+1
-1
No files found.
bmsapp/views.py
View file @
9a9f9ef1
...
...
@@ -93,7 +93,7 @@ def get_report_results(request):
dbsize
=
os
.
path
.
getsize
(
chart_obj
.
reading_db
.
db_fname
)
loads
=
subprocess
.
check_output
(
'uptime'
).
split
(
':'
)[
-
1
].
split
(
','
)
loads
=
[
float
(
ld
)
for
ld
in
loads
]
result
[
'objects'
]
=
result
[
'objects'
].
append
(
(
'stats'
,
{
'dbsize'
:
dbsize
,
'loads'
:
loads
})
)
result
[
'objects'
].
append
(
(
'stats'
,
{
'dbsize'
:
dbsize
,
'loads'
:
loads
})
)
except
:
_logger
.
exception
(
'Error in get_report_results'
)
...
...
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