[BusyBox] (patch) rdate - show time difference
walter harms
wharms at bfs.de
Mon May 2 10:29:47 UTC 2005
hi rob,
hi list
i do not know the traditional rdate command (normaly i use netdate and
that shows the diff). i NEED the information simply because i use it on
a datalogger and need the correct/ed time. from time to time an update
of the internal clock is need (they do not have dcf77 or equal).
The delta is used to check if there is (time) adjustment of the data
requiered.
adjtimex changes the kernel clock permanently. this is usefull if the
clock the skrewed with the begining. it does not help if the clock is
sensitive for e.g. temperature changes (does happen in real world
systems :).
IMHO you can not do data collection without a reliable time. and you
need to know the time delta to adjust your data propperly. anything else
is an error.
btw:
you can save some bytes by using bits instead of ints. i can send you a
patch if you like.
re,
walter
Rob Landley wrote:
> On Sunday 01 May 2005 06:31 am, hw-fr wrote:
>
>>Hi list,
>>for my embedded system i need to know how much the time was corrected. this
>>patch shows the time difference when -v is used.
>
>
> The traditional rdate command doesn't have a -v option and you're supposing we
> add this feature to a version that's optimized for size? (Now I admit I
> proposed a similar addition to the losetup command, although I haven't pushed
> to have it integrated yet.)
>
> Why do you need to know how much your clock skew is? (Isn't this what the
> adjtime file is for?) Is your change generally useful to people other than
> yourself...?
>
> Rob
>
>
>
More information about the busybox
mailing list