Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ntoskernel committed Jul 5, 2023
1 parent 8bd15b8 commit 931d6ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deepsecrets/core/utils/cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ def _by_cgroup(self):
if path_exists(CGROUP_2_MAX):
try:
quota, period = self.__cgroup2()
return quota, period
return quota // period
except Exception:
pass

# cgroup 1: https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v1/index.html
if path_exists(QUOTA_FILE) and path_exists(PERIOD_FILE):
try:
quota, period = self.__cgroup1()
return quota, period
return quota // period
except Exception:
pass

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "deepsecrets"
version = "1.1.0"
version = "1.1.1"
description = "A better tool for secrets search"
license = "MIT"
authors = [
Expand Down

0 comments on commit 931d6ed

Please sign in to comment.