debian-forge/osbuild
Lukas Zapletal 5088c0ee69 monitor: fix duration calculation
When fully cached manifest is used, the duration used to print an
incorrect value of 55 years:

    python3 -m osbuild --libdir . ./test/data/manifests/fedora-boot.json
    ⏱  Duration: 1753191578s

This patch fixes the duration calculation to use the correct timestamp
from the manifest by using monotonic timer instead. Additionally, it
prints nothing when there was no module executed. Finally, it improves
the formatting of the duration output.
2025-08-22 09:26:50 +02:00
..
formats Add support for using librepo to download packages 2025-01-14 08:19:16 +01:00
solver osbuild/solver/dnf.py: Add support for DNF variables for osbuild repos 2025-08-13 15:42:00 +02:00
testutil Revert "ostree: introduce optional subpath feature" 2025-02-11 17:39:45 +01:00
util util: add new util.experimentalflags.get_{bool,string} helpers 2025-04-03 10:49:06 +02:00
__init__.py Post release version bump 2025-08-13 08:37:21 +00:00
__main__.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
api.py Fix errors reported by new version of mypy 2023-04-12 11:57:18 +02:00
buildroot.py osbuild: make the entire /etc/selinux avaialble for the buildroot 2024-03-22 11:24:35 +01:00
devices.py osbuild: error when {Device,Mount} is modified after creation 2024-01-19 02:54:26 +01:00
host.py tox: add tox 2023-08-01 15:01:13 +02:00
inputs.py jsoncomm: transparently handle huge messages via fds 2024-09-17 19:27:03 +02:00
loop.py devices/loopback: add read-only option 2024-09-18 08:54:34 +02:00
main_cli.py osbuild/cli: prefer --cache over --store 2025-01-21 11:35:16 +01:00
meta.py compat: ast.Str -> ast.Constant 2025-06-16 12:26:15 +02:00
mixins.py osbuild: error when {Device,Mount} is modified after creation 2024-01-19 02:54:26 +01:00
monitor.py monitor: fix duration calculation 2025-08-22 09:26:50 +02:00
mounts.py mounts/ostree.deployment: support deployments on mount 2024-01-31 16:46:01 -05:00
objectstore.py objectstore: add new skip_preserve_owner to Object.export() 2023-12-20 09:28:39 +01:00
pipeline.py osbuild: drop + when doing QEMU_LOG=unimp 2025-06-27 11:37:38 +02:00
remoteloop.py osbuild/remoteloop: add more loop device options 2024-12-04 16:30:55 +01:00
sources.py jsoncomm: transparently handle huge messages via fds 2024-09-17 19:27:03 +02:00