Remove the 'irq' string from the irqN part of the "interrupts" display.

This allows us to see the irq number when device names ate too long.
This commit is contained in:
Mark Murray 2001-12-01 17:41:37 +00:00
parent f906e265a6
commit 4b0ef38df3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87172

View File

@ -394,8 +394,9 @@ showkre()
{
float f1, f2;
int psiz, inttotal;
int i, l, c;
int i, j, k, l, c;
static int failcnt = 0;
char intrbuffer[10];
etime = 0;
for(i = 0; i < CPUSTATES; i++) {
@ -427,8 +428,15 @@ showkre()
if (nextintsrow == LINES)
continue;
intrloc[i] = nextintsrow++;
k = 0;
for (j = 0; j < sizeof(intrbuffer); j++) {
if (strncmp(&intrname[i][j], "irq", 3) == 0)
j += 3;
intrbuffer[k++] = intrname[i][j];
}
intrbuffer[k] = '\0';
mvprintw(intrloc[i], INTSCOL + 9, "%-10.10s",
intrname[i]);
intrbuffer);
}
X(intrcnt);
l = (int)((float)s.intrcnt[i]/etime + 0.5);