From e0ca88c8078c4a9309e0d7d493c2bb616423776c Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Wed, 24 Apr 2019 16:11:27 +0000 Subject: [PATCH] Fix reference to get_rss --- qwarc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qwarc/__init__.py b/qwarc/__init__.py index 8676de1..d49306a 100644 --- a/qwarc/__init__.py +++ b/qwarc/__init__.py @@ -278,7 +278,7 @@ class QWARC: logging.info('Gracefully shutting down due to STOP file') break if self._memoryLimit and qwarc.utils.uses_too_much_memory(self._memoryLimit): - logging.info('Gracefully shutting down due to memory usage (current = {} > limit = {})'.format(get_rss(), self._memoryLimit)) + logging.info('Gracefully shutting down due to memory usage (current = {} > limit = {})'.format(qwarc.utils.get_rss(), self._memoryLimit)) break for sleepTask in sleepTasks: