From: Bart Van Assche Date: Thu, 24 Oct 2019 21:03:51 +0000 (-0700) Subject: Move and rename uptime_s() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4d061e141bb63b700b9398b232cd25f89f4724e4;p=users%2Fsagi%2Fblktests.git Move and rename uptime_s() Make it easy to use the uptime_s() function from block tests. Change the implementation of this function into something that is easier to read. Signed-off-by: Bart Van Assche --- diff --git a/common/multipath-over-rdma b/common/multipath-over-rdma index 65ebb7b..545a81e 100644 --- a/common/multipath-over-rdma +++ b/common/multipath-over-rdma @@ -129,19 +129,12 @@ held_by() { done } -# System uptime in seconds. -uptime_s() { - local a b - - echo "$(