Fixed 2 channel usage (flags is per driver, not per channel)

This commit is contained in:
Paul Slootman 1999-06-23 13:01:36 +00:00
parent ec40874c42
commit 93233d46c0
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ static Siobytes iobytes[ISDN_MAX_CHANNELS];
static Pixel onlinecolor, activecolor, tryingcolor, bgcolor;
static long last[ISDN_MAX_CHANNELS];
static int usageflags[ISDN_MAX_CHANNELS];
static int flags[ISDN_MAX_CHANNELS];
static int flags[ISDN_MAX_DRIVERS];
static char phone[ISDN_MAX_CHANNELS][20];
static int fd_isdninfo;
static Widget label_wid;
@ -322,7 +322,7 @@ XtPointer call_data; /* pointer to (double) return value */
#ifdef REGEX_NUMBER
if (!regexec(&preg, phone[idx], 0, NULL, 0)) {
#endif
if (flags[idx]) {
if (flags[idx/2]) {
online_now++;
if (get_iobytes) {
if (ioctl(fd_isdninfo, IIOCGETCPS, &iobytes))