From 71a903e649d06cafdf0bfec01bcfdc9c91394246 Mon Sep 17 00:00:00 2001 From: shakemid Date: Fri, 15 Sep 2017 17:58:09 +0900 Subject: [PATCH] Fix loop --- pcsensor.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pcsensor.c b/pcsensor.c index b436c74..6e9656a 100644 --- a/pcsensor.c +++ b/pcsensor.c @@ -446,10 +446,9 @@ int main(int argc, char **argv) { if (devices[i].type->has_humid == 1) { printf("%s\t%d\thumidity\t%.2f %%\n", strdate, i, tempd[1]); } - - if (!bsalir) - sleep(seconds); } + if (!bsalir) + sleep(seconds); } while (!bsalir); for (i = 0; i < numdev; i++) {