]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: make duration take time_t
authorAndrey Albershteyn <aalbersh@redhat.com>
Tue, 23 Apr 2024 12:36:15 +0000 (14:36 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 23 Apr 2024 13:02:58 +0000 (15:02 +0200)
commitfcac184ccf342a345ea8fe4d842415841af89e64
tree4a90aeb0bbbf3063c07f28f6734cfd4866a8d450
parent21dc682a3842eb7e4c79f7e511d840e708d7e757
xfs_repair: make duration take time_t

In most of the uses of duration() takes time_t instead of int.
Convert the rest to use time_t and make duration() take time_t to
not truncate it to int.

While at it remove unnecessary parentheses around 'elapsed'.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrey Albershteyn <aalbersh@redhat.com>
repair/globals.c
repair/globals.h
repair/progress.c
repair/progress.h
repair/xfs_repair.c