aboutsummaryrefslogtreecommitdiffstats
path: root/processor.c
diff options
context:
space:
mode:
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));
}