Commit 9a9f9ef1 authored by Alan Mitchell's avatar Alan Mitchell
Browse files

Fixed Problem appending performance stats.

parent a6e78433
......@@ -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')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment