1 Wed Sep 15 00:29:10 EDT 1999
2 I tuned ifacechk to be able to handle _huge_ numbers of packets. Perl was
3 maxin' out at some point ... who cares. I fixed it with line #113:
4 s/([0-9]+)([0-9]{9})/$2/g := just gimme the last 9 digits... work on that.
5 This forces a rollover on 9 digits, simultaneously causing correct operation
6 999999999 out of 10000000000 times (assuming a 1 byte per second xfer rate and
7 an update delay of 1 second). It also causes an error on the rollover (fixed
8 after the next update. This is not an elegant solution, but, it is
11 Tue Aug 24 12:14:38 EDT 1999
12 I just noticed a bug in ifacechk. The code that reverses the logical/physical
13 devices doesn't work quite right. Apparently if /var/run/ppp-ppp0.dev
14 contains 'ppp1', then it means that the physical device 'ppp0' is acting as
15 the logical device 'ppp1'. That's news to me. The reversal was working
16 before, because if both devices are up, the reversal is correct even counting
17 my error. Did you know that Keppler made two glaring errors in his calculus,
18 and the second cancled out the first? I guess I'm up there with greatness. ;)
20 Tue Aug 24 12:07:07 EDT 1999
21 I added some better error checking. When one of my devices would go down,
22 wmjiface would start showing me non-sense while the device is coming back
23 up. If an error is detected, the exponential averaging get's cleared out.
24 That helps to keep it from holding on to negative speeds for long periods.
26 Wed Aug 18 02:22:43 EDT 1999
27 I finnally installed the weighted averaging I was talking about! exp_avg =
28 (alpha*current_bps) + ((1-alpha)*last_average). This method is called
29 exponetial averaging. I had to install a "beta pulldown," where alpha is
30 equals beta iff the xfer_rate exactly equals 0. It gives a more realistic
31 feel to the end of the xfer, rather than a drawn out approach to 0. That
32 limit could go on for tens of minutes, since I used doubles (so the history
33 will contain a more accurate approximation).
35 Tue Aug 17 22:48:18 EDT 1999
36 Made a minor change that reverses my ppp devices when needed. The ppp devices
37 are fcfs btw, I don't want the imaginary device, I want the real device.
39 Tue Aug 17 03:47:06 EDT 1999
40 Somewhat drunkenly completed a change to ifacechk to remove the old tmp files.
41 Ended up using a system() if ... /proc/dir exists check ... how ugly.
42 but hey... I was already using /proc *smirk*
44 Mon Aug 16 22:07:05 EDT 1999
45 noticed an ugly flaw in ifacechk. Every instance of ifacechk was overwriting
46 every other's data ... I used perl's '$$' variable to seperate it out. The
47 only trouble is that there will now be a huge buildup of the stat files after
48 a while. How to resolve that?
50 Mon Aug 16 22:06:15 EDT 1999
51 added a new switch (and the support for it). -D: now lists in/out at the
54 Mon Aug 16 20:06:18 EDT 1999
55 huge changes to the update loop in the form of more modularization.
57 Tue Jul 20 11:08:38 EDT 1999
58 installed new date and version stuff in the makefile, and the print_help()
60 Wed Jul 14 19:08:20 EDT 1999
61 It's new... There's no changes... besides it's existance.