block/sheepdog: Replace magic val by NANOSECONDS_PER_SECOND definition
PATCH 1/1 block/sheepdog: Replace magic val by NANOSECONDS_PER_SECOND definition
Use self-explicit NANOSECONDS_PER_SECOND definition instead of magic value.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
--- block/sheepdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block/sheepdog.c +1 -1
@@ -740,7 +740,7 @@ static coroutine_fn void reconnect_to_sdog(void *opaque)if (s->fd <0 ) {trace_sheepdog_reconnect_to_sdog ();error_report_err (local_err); -qemu_co_sleep_ns (QEMU_CLOCK_REALTIME ,1000000000ULL ); +qemu_co_sleep_ns (QEMU_CLOCK_REALTIME ,NANOSECONDS_PER_SECOND ); } };
Signature · 1 line
2.26.2
Quoted 4 lines · Philippe Mathieu-Daudé
Use self-explicit
NANOSECONDS_PER_SECONDdefinition instead of magic value.Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Reviewed-by Alberto Garcia <[email protected]>
Berto
Kevin Wolf
AppliedAm 21.09.2020 um 13:01 hat Philippe Mathieu-Daudé geschrieben:
Quoted 4 lines
Use self-explicit
NANOSECONDS_PER_SECONDdefinition instead of magic value.Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Thanks, applied to the block branch.
Kevin