locust 2.28.1.dev16__py3-none-any.whl → 2.28.1.dev19__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- locust/_version.py +2 -2
- locust/html.py +3 -3
- locust/util/date.py +5 -0
- locust/webui/dist/assets/{index-e569e7ff.js → index-43911052.js} +53 -53
- locust/webui/dist/auth.html +1 -1
- locust/webui/dist/index.html +1 -1
- {locust-2.28.1.dev16.dist-info → locust-2.28.1.dev19.dist-info}/METADATA +1 -1
- {locust-2.28.1.dev16.dist-info → locust-2.28.1.dev19.dist-info}/RECORD +12 -11
- {locust-2.28.1.dev16.dist-info → locust-2.28.1.dev19.dist-info}/LICENSE +0 -0
- {locust-2.28.1.dev16.dist-info → locust-2.28.1.dev19.dist-info}/WHEEL +0 -0
- {locust-2.28.1.dev16.dist-info → locust-2.28.1.dev19.dist-info}/entry_points.txt +0 -0
- {locust-2.28.1.dev16.dist-info → locust-2.28.1.dev19.dist-info}/top_level.txt +0 -0
locust/_version.py
CHANGED
@@ -12,5 +12,5 @@ __version__: str
|
|
12
12
|
__version_tuple__: VERSION_TUPLE
|
13
13
|
version_tuple: VERSION_TUPLE
|
14
14
|
|
15
|
-
__version__ = version = '2.28.1.
|
16
|
-
__version_tuple__ = version_tuple = (2, 28, 1, '
|
15
|
+
__version__ = version = '2.28.1.dev19'
|
16
|
+
__version_tuple__ = version_tuple = (2, 28, 1, 'dev19')
|
locust/html.py
CHANGED
@@ -12,6 +12,7 @@ from . import stats as stats_module
|
|
12
12
|
from .runners import STATE_STOPPED, STATE_STOPPING, MasterRunner
|
13
13
|
from .stats import sort_stats, update_stats_history
|
14
14
|
from .user.inspectuser import get_ratio
|
15
|
+
from .util.date import format_utc_timestamp
|
15
16
|
|
16
17
|
PERCENTILES_FOR_HTML_REPORT = [0.50, 0.6, 0.7, 0.8, 0.9, 0.95, 0.99, 1.0]
|
17
18
|
ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
|
@@ -32,11 +33,10 @@ def get_html_report(
|
|
32
33
|
):
|
33
34
|
stats = environment.runner.stats
|
34
35
|
|
35
|
-
|
36
|
-
start_time = datetime.datetime.fromtimestamp(start_ts, tz=datetime.timezone.utc).strftime("%Y-%m-%d %H:%M:%S")
|
36
|
+
start_time = format_utc_timestamp(stats.start_time)
|
37
37
|
|
38
38
|
if end_ts := stats.last_request_timestamp:
|
39
|
-
end_time =
|
39
|
+
end_time = format_utc_timestamp(end_ts)
|
40
40
|
else:
|
41
41
|
end_time = start_time
|
42
42
|
|