[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ppptime v0.3.1 Aho



Yo,

Ah ben voilà, ça marche beaucoup mieux cette fois !

ustilago% ./ppptime_0.3.1.awk -f /var/log/messages -m Jul -vl
 1      21:55:59        22:03:35         0:07:36
 1      22:26:31        22:31:53         0:05:22
 2      18:13:15        18:15:42         0:02:27
==      ========        ========        ========
 2                                       0:15:25

spent: 0:15:25
avg time/day (2): 0:07:42
avg time/connect (3): 0:05:08
avg connect/day: 1.5

Au fait, le compte fait par pppd:

ustilago% cat /var/log/messages |grep minutes
[snip]
Jul  1 22:03:35 kaneloon pppd[295]: Connect time 7.6 minutes.
Jul  1 22:31:53 kaneloon pppd[1130]: Connect time 5.4 minutes.
Jul  2 18:15:42 kaneloon pppd[293]: Connect time 2.5 minutes.

Ce qui nous donne 15,5 minutes, donc 0:15:30 .
0:07:36
0:05:24
0:02:30
 
A+

Sébastien



Reply to: