From 396a5d42f979c5200532937f3428d68e049b1298 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 17 Apr 2020 14:41:20 +0200 Subject: Fetch percent is ok --- src/jo_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/jo_main.c b/src/jo_main.c index 7ee0c83..f3e97f4 100644 --- a/src/jo_main.c +++ b/src/jo_main.c @@ -16,6 +16,7 @@ ** Files prefixes ** -------------- ** f: fetch +** n: notify */ int @@ -24,10 +25,11 @@ main(void) int8_t status; int8_t percent; - if ((status = jo_f_status()) < 0) { + if ((status = jo_f_status()) == -2) { return (JO_RET_RD_FAILED); } - if ((percent = jo_f_percent()) < 0) { + if ((percent = jo_f_percent()) == -3) { + printf("failed\n"); return (JO_RET_RD_FAILED); } printf("status: %hhd, %hhd%%\n", status, percent); -- cgit v1.2.3