소스 검색

Fix references to memory and disk space check methods

tags/v0.1.1
JustAnotherArchivist 5 년 전
부모
커밋
8a8935810d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      qwarc/__init__.py

+ 2
- 2
qwarc/__init__.py 파일 보기

@@ -226,7 +226,7 @@ class QWARC:
emptyTodoFullReached = True
await wait_for_free_task()

if self._minFreeDisk and too_little_disk_space(self._minFreeDisk):
if self._minFreeDisk and qwarc.utils.too_little_disk_space(self._minFreeDisk):
logging.info('Disk space is low, sleeping')
sleepTask = asyncio.sleep(random.uniform(self._concurrency / 2, self._concurrency * 1.5))
sleepTask.taskType = 'sleep'
@@ -277,7 +277,7 @@ class QWARC:
if os.path.exists('STOP'):
logging.info('Gracefully shutting down due to STOP file')
break
if self._memoryLimit and uses_too_much_memory(self._memoryLimit):
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))
break



불러오는 중...
취소
저장