8000 fix: 修复时间问题 · TTB-Network/python-openbmclapi@4644f6a · GitHub
[go: up one dir, main page]

Skip to content

Commit 4644f6a

Browse files
committed
fix: 修复时间问题
1 parent e5e6b93 commit 4644f6a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ def cluster_up_failed_times(self) -> int:
102102

103103
@property
104104
def cluster_up_failed_interval(self) -> datetime.timedelta: # 24 hours
105-
return datetime.timedelta(seconds=units.parse_time_units(self.get("advanced.cluster_up_failed_interval") or "24h") / 1e9)
105+
return datetime.timedelta(seconds=units.parse_time_units(self.get("advanced.cluster_up_failed_interval") or "24h"))
106106

107107

108108
API_VERSION = "1.13.1"
109-
VERSION = "4.0.13"
109+
VERSION = "4.0.14"
110110
PROJECT = "PythonOpenBMCLAPI"
111111
USER_AGENT = f"openbmclapi-cluster/{API_VERSION} {PROJECT}/{VERSION}"
112112
ROOT_PATH = Path(__file__).parent.parent

core/storage/abc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def cache_size(self):
5959

6060
@property
6161
def cache_ttl(self):
62-
return units.parse_time_units(self._kwargs.get("cache_ttl", "10m")) / 1e9
62+
return units.parse_time_units(self._kwargs.get("cache_ttl", "10m"))
6363

6464
@abc.abstractmethod
6565
async def setup(

0 commit comments

Comments
 (0)
0