BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} wrong history
Hi Henrik!
I found the Error in the Source Code which is responsible for the wrong
history file. In OpenBSD, at least in OpenBSD for Solaris64, the time_t is
not equal to long but just to int. So in bbd.c in line 1791 the fscanf
receives not the correct time for lasttime. I changed in bbd.c the
declaration from time_t lasttime; to long lasttime; and it seems to work...
Ok. Just had 1 hour test for now... erhaps now something else isn't
working... but the problem definitely is in the wrong declaration of the
time_t...
Here are the definitions of _BSD_TIME_T_ and time_t in OpenBSD...:
/usr/include/sparc64/ansi.h:#define _BSD_TIME_T_ int
/* time() */
/usr/include/sys/types.h:#ifdef _BSD_TIME_T_
/usr/include/sys/types.h:typedef _BSD_TIME_T_ time_t;
/usr/include/sys/types.h:#undef _BSD_TIME_T_
/usr/include/time.h:#ifdef _BSD_TIME_T_
/usr/include/time.h:typedef _BSD_TIME_T_ time_t;
/usr/include/time.h:#undef _BSD_TIME_T_
/usr/include/utime.h:#ifdef _BSD_TIME_T_
/usr/include/utime.h:typedef _BSD_TIME_T_ time_t;
/usr/include/utime.h:#undef _BSD_TIME_T_
Hope anybody could evaluate those settings for the OpenBSD Sparc64
environment...
Thanks
Matthias
> In <20384.1101261312@www11.gmx.net> "Matthias Schreiber"
> <compeiler@gmx.net> writes:
>
> >yet the logfiles themselves are wrong (in $BBHIST):
> >Sun Nov 21 23:03:51 2004 red 0 1101075474
> >Sun Nov 21 23:17:54 2004 green 0 1101077321
> >Sun Nov 21 23:48:41 2004 yellow 0 1101077873
> >Sun Nov 21 23:57:53 2004 green 0 1101081230
> >Mon Nov 22 00:53:50 2004 red 0 1101234176
> >Tue Nov 23 19:22:56 2004 green 1101234176
>
> How very strange !
>
> >and should be something like timestamp at position 7 and in position 8
> the
> >duration. If I calculate that by hand all looks fine...
> >Where is that routine which calculates an position 7 and 8???
>
> It's buried in the bb_log routine in bbd.c, around line 1850 or so in
> BB 1.9c (do a search for "TRYING TO OPEN HISTORY FILE").
>
>
> Henrik
>
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
> To unsubscribe from this list, or to subscribe to the bb-digest list
> send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
> subscribe bb-digest in the BODY of the message.
>
--
NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis!
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.
Home |
Main Index |
Thread Index