- sprintf(statstr, "NetWatch! %08x %08x", smi_status(), counter);
+ int totcyc, pct;
+
+ if (entrytime < lastentry)
+ totcyc = entrytime + (0xFFFFFFFFUL - lastentry) + 1;
+ else
+ totcyc = entrytime - lastentry;
+ if (totcyc == 0)
+ totcyc = 1; /* argh */
+ totcyc /= 1000;
+ if (totcyc == 0)
+ totcyc = 1;
+
+ pct = lastlength / totcyc;
+
+ sprintf(statstr, "NetWatch! %08x %08x, %2d.%d%%", smi_status(), counter, pct/10, pct%10);