On Mon, 14 Feb 2005 15:32:36 -0800 (PST), you wrote: >On Sat, 12 Feb 2005, Serge Koksharov wrote: > ... >> If in the same script /etc/ppp/ip-up.local I use following command to >> synchronize time: >> ntpdate ntp.someserver.org >> And in the /etc/ppp/ip-down.local I use command to log sent/received byte >> count >> and connection time by this command: >> echo " TX: $BYTES_SENT RX: $BYTES_RCVD for $((CONNECT_TIME/60)) minutes"\ >>>> /etc/ppp/history >> I often get wrong connection time in /etc/ppp/history, for example: >> TX: 41180 RX: 291021 for 71582784 minutes. > >What do you get if you just record CONNECT_TIME ? It sounds to me like some >counter is rolling over. >Note that this almost certainly has nothing to do with using ntp. >I do not know how your system or pppd gets the variable CONNECT_TIME.
Elapsed seconds from connection up until down. You may need to separate the seconds --> minutes conversion to a variable in your script, or: Bash script math example: VOL=$((DEFAULT_VOLUME * 65535 / 100)) perhaps you need whitespace around the operator in your script? As far as connection speed goes, if 'chat' sees it, perhaps set an env variable to be picked up by your ip-up script? Cheers, Grant. - To unsubscribe from this list: send the line "unsubscribe linux-ppp" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
