Skip to content

Commit

Permalink
Fixes monitoring code for new versions of psutil
Browse files Browse the repository at this point in the history
As described in http://grodola.blogspot.com.br/2014/01/psutil-20-porting.html
some process properties are now methods, thus `create_time` (a bound method)
was being passed to the store to be saved, not the information you would get by
calling it.
  • Loading branch information
flavioamieiro committed Oct 6, 2014
1 parent a51b7c8 commit 30e0db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypelinin/monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_process_info(process_id):
'resident memory': memory_info.rss,
'virtual memory': memory_info.vms,
'pid': process.pid,
'started at': process.create_time,}
'started at': process.create_time(),}


if __name__ == '__main__':
Expand Down

0 comments on commit 30e0db9

Please sign in to comment.