aboutsummaryrefslogtreecommitdiffstats
path: root/processor.c
diff options
context:
space:
mode:
authorreinelt <>2001-02-16 08:23:09 +0000
committerreinelt <>2001-02-16 08:23:09 +0000
commit809874ab240f27ecdf96b29877cdceaf4cc0114e (patch)
tree4b83094161a3cfda48a3abb7f8403fd1e765fc80 /processor.c
parent97f92ab56802c16175dc7934a71ce29c9cb271f2 (diff)
downloadlcd4linux-809874ab240f27ecdf96b29877cdceaf4cc0114e.tar.gz
[lcd4linux @ 2001-02-16 08:23:09 by reinelt]
new token 'ic' (ISDN connected) by Carsten Nau <info@cnau.de>
Diffstat (limited to 'processor.c')
-rw-r--r--processor.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/processor.c b/processor.c
index 50a3acf..71bc9e8 100644
--- a/processor.c
+++ b/processor.c
@@ -1,4 +1,4 @@
-/* $Id: processor.c,v 1.11 2001/02/14 07:40:16 reinelt Exp $
+/* $Id: processor.c,v 1.12 2001/02/16 08:23:09 reinelt Exp $
*
* main data processing
*
@@ -20,6 +20,10 @@
*
*
* $Log: processor.c,v $
+ * Revision 1.12 2001/02/16 08:23:09 reinelt
+ *
+ * new token 'ic' (ISDN connected) by Carsten Nau <info@cnau.de>
+ *
* Revision 1.11 2001/02/14 07:40:16 reinelt
*
* first (incomplete) GPO implementation
@@ -181,6 +185,8 @@ static double query (int token)
return isdn.total;
case T_ISDN_MAX:
return isdn.max;
+ case T_ISDN_CONNECT:
+ return isdn.usage;
case T_PPP_RX:
return ppp.rx;
@@ -349,6 +355,12 @@ static void print_token (int token, char **p)
else
*p+=sprintf (*p, " ----");
break;
+ case T_ISDN_CONNECT:
+ if (isdn.usage)
+ *p+=sprintf (*p, "*",);
+ else
+ *p+=sprintf (*p, " ");
+ break;
default:
*p+=sprintf (*p, "%5.0f", query(token));
}