aboutsummaryrefslogtreecommitdiffstats
path: root/src/jo_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jo_main.c')
-rw-r--r--src/jo_main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/jo_main.c b/src/jo_main.c
index e5576b3..7ee0c83 100644
--- a/src/jo_main.c
+++ b/src/jo_main.c
@@ -22,10 +22,14 @@ int
main(void)
{
int8_t status;
+ int8_t percent;
if ((status = jo_f_status()) < 0) {
return (JO_RET_RD_FAILED);
}
- printf("status: %d\n", status);
+ if ((percent = jo_f_percent()) < 0) {
+ return (JO_RET_RD_FAILED);
+ }
+ printf("status: %hhd, %hhd%%\n", status, percent);
return (JO_RET_FINE);
}