From 3549f3d229ac3e1bfcf7e2c6c064fe4c6a549ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Sun, 7 Mar 2021 17:35:14 +0100 Subject: [PATCH] fixed CPUProfileBuilderThread --- CHANGELOG.md | 2 ++ satella/__init__.py | 2 +- satella/instrumentation/cpu_time/collector.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29d25ca5..7a69412a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1,3 @@ # v2.14.48 + +* **bugfix** fixed `CPUProfileBuilderThread` diff --git a/satella/__init__.py b/satella/__init__.py index 75c554a4..c1afbd70 100644 --- a/satella/__init__.py +++ b/satella/__init__.py @@ -1 +1 @@ -__version__ = '2.14.48a1' +__version__ = '2.14.48' diff --git a/satella/instrumentation/cpu_time/collector.py b/satella/instrumentation/cpu_time/collector.py index 39f5ec80..beefea3f 100644 --- a/satella/instrumentation/cpu_time/collector.py +++ b/satella/instrumentation/cpu_time/collector.py @@ -29,7 +29,7 @@ class CPUProfileBuilderThread(threading.Thread): refresh_each: tp.Union[str, int] = DEFAULT_REFRESH_EACH, percentiles_requested: tp.Sequence[float] = (0.9, )): super().__init__(name='CPU profile builder', daemon=True) - self.window_size = parse_time_string(window_seconds) + self.window_size = int(parse_time_string(window_seconds)) self.refresh_each = parse_time_string(refresh_each) self.data = [] self.percentiles_requested = list(percentiles_requested) -- GitLab