commit 0cbde419d1c1143b053305d75be37d3926e72116
parent ddd0df8a1d348812ed835e34a0de973f8eae29b9
Author: Claudio Alessi <smoppy@gmail.com>
Date: Tue, 2 May 2017 23:19:08 +0200
Made it works. But we need to refactor.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/snore.c b/snore.c
@@ -6,8 +6,8 @@
#include <string.h>
#include <time.h>
-#define TICK 500000000
-#define DELTA (TICK / 10000)
+#define TICK 1000
+#define DELTA ((double)TICK / 10000000)
#define CLEAR "\33[2K\r"
#define LENGTH(X) (sizeof X / sizeof X[0])
#define ISCHR(c) (c >= 'a' && c <= 'z')