PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: [P]Tomix on 14 March, 2005, 15:24:33

Title: 2 Stat scripts needed...
Post by: [P]Tomix on 14 March, 2005, 15:24:33
hi all,

i need 2 Statistic Scripts.

1) Week-Stat Script {Every day,Every hour script have to put in to file the Max number of users (max number of users durong this hour) and Max number of Shared Files (TB) (also top score during hour) and all this numbers have to be written in txt file which looks like this : HOUR|MAX_USER|MAX_SHARE eg. :

01:00|23|1678
02:00|20|1,61
....
13:00|67|3,46
....
24:00|21|1,64

file name every day of the week have to be difrent (monday.txt...sunday.txt). When week is over the old "day" file have to be re-write)

2)Month-Stat Script {Every day the script write Max number of shared files (TB) (during all day) and Max number of users (during day). txt file need to look like this : MONTH|MAX_USER|MAX_SHARE (where MONTH = number) eg.:
01|130|6,54
...
09|145|12,45
10|156|15,67
...
31|167|17,87

every year files need to be re-write. name of the "month" stat need to be name of the month (eg.: april.txt, may.txt....)

i hope everything is clear... big thx for all help

                                                     pzz.[P]Tomix