projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1978f7d
)
Switch from psutil.phymem_usage() to psutil.virtual_memory()
author
Paul Wise
<pabs@debian.org>
Wed, 5 Apr 2017 23:07:52 +0000
(07:07 +0800)
committer
Paul Wise
<pabs@debian.org>
Wed, 5 Apr 2017 23:07:52 +0000
(07:07 +0800)
The former was deprecated in version 0.6.0 and removed after jessie:
https://github.com/giampaolo/psutil/blob/master/HISTORY.rst
modules/buildd/files/buildd-schroot-aptitude-kill
patch
|
blob
|
history
diff --git
a/modules/buildd/files/buildd-schroot-aptitude-kill
b/modules/buildd/files/buildd-schroot-aptitude-kill
index
fa73746
..
c7bc36a
100755
(executable)
--- a/
modules/buildd/files/buildd-schroot-aptitude-kill
+++ b/
modules/buildd/files/buildd-schroot-aptitude-kill
@@
-34,7
+34,7
@@
except OSError, e:
if e.errno == errno.ENOENT:
sys.exit(0)
-total_mem = psutil.
phymem_usage
().total
+total_mem = psutil.
virtual_memory
().total
cutoff_time = 60*10
for p in psutil.process_iter():