From 931d6ed375bb4566363d6d0cb9d3fc5314c01834 Mon Sep 17 00:00:00 2001 From: Nikolay Khechumov Date: Wed, 5 Jul 2023 09:51:19 +0300 Subject: [PATCH] Bugfix --- deepsecrets/core/utils/cpu.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deepsecrets/core/utils/cpu.py b/deepsecrets/core/utils/cpu.py index 8769740..8452232 100644 --- a/deepsecrets/core/utils/cpu.py +++ b/deepsecrets/core/utils/cpu.py @@ -27,7 +27,7 @@ def _by_cgroup(self): if path_exists(CGROUP_2_MAX): try: quota, period = self.__cgroup2() - return quota, period + return quota // period except Exception: pass @@ -35,7 +35,7 @@ def _by_cgroup(self): if path_exists(QUOTA_FILE) and path_exists(PERIOD_FILE): try: quota, period = self.__cgroup1() - return quota, period + return quota // period except Exception: pass diff --git a/pyproject.toml b/pyproject.toml index 482b9a8..41497fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [