modify display of callbackdelay (cbdelay) value to %.1f sec.

if abc-extension is enabled
This commit is contained in:
detabc 1998-04-18 17:36:13 +00:00
parent 5c041edd21
commit 8e3c0291a8
1 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $Id: isdnctrl.c,v 1.18 1998/03/21 17:10:36 detabc Exp $
/* $Id: isdnctrl.c,v 1.19 1998/04/18 17:36:13 detabc Exp $
* ISDN driver for Linux. (Control-Utility)
*
* Copyright 1994,95 by Fritz Elfert (fritz@wuemaus.franken.de)
@ -21,6 +21,10 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: isdnctrl.c,v $
* Revision 1.19 1998/04/18 17:36:13 detabc
* modify display of callbackdelay (cbdelay) value to %.1f sec.
* if abc-extension is enabled
*
* Revision 1.18 1998/03/21 17:10:36 detabc
* change to use the abc-ext-options -TU on all encapsulations
* the option -A (abc-router) will only works with rawip
@ -374,7 +378,11 @@ static void listif(int isdnctrl, char *name, int errexit)
printf("Hangup after Dial %s\n", cfg.cbdelay ? "on" : "off");
else
printf("Reject before Callback: %s\n", cfg.cbhup ? "on" : "off");
printf("Callback-delay: %d\n", cfg.cbdelay / 5);
#ifdef HAVE_ABCEXT
printf("Callback-delay: %.1f\n", cfg.cbdelay / 25.0);
#else
printf("Callback-delay: %d\n",cfg.cbdelay / 5);
#endif
printf("Dialmax: %d\n", cfg.dialmax);
#ifdef HAVE_TIMRU
printf("Dial-Timeout: %d\n", cfg.dialtimeout);
@ -845,7 +853,13 @@ int exec_args(int fd, int argc, char **argv)
return -1;
}
}
#ifdef HAVE_ABCEXT
printf("Callback delay for %s is %.1f sec.\n",
cfg.name,
cfg.cbdelay / 25.0);
#else
printf("Callback delay for %s is %d sec.\n", cfg.name, cfg.cbdelay / 5);
#endif
break;
case CHARGEINT: