- Add support for sorttable.js (http://www.kryogenix.org/code/browser/sorttable/) to dynamically sort some tables (thanks to Éric).
- Add the two command line options --lastlog and --keeplogs to set the number of reports to keep or to keep all the reports respectively (thanks to Emmanuel Lacour for the suggestion).
- Report the user ID in the e-mail report.
+ - Add an option to sort the top sites by time.
Sep-18-2010 Version 2.3.1
- Remove the distinct printf for the alpha architecture as it doesn't work anymore and is not necessary anyway.
{
{"BYTES",TOPSITE_SORT_BYTES},
{"CONNECT",TOPSITE_SORT_CONNECT},
+ {"TIME",TOPSITE_SORT_TIME},
};
struct sort_list user_sort[]=
#define TOPSITE_SORT_REVERSE SORT_REVERSE
#define TOPSITE_SORT_BYTES 0x0002UL
#define TOPSITE_SORT_CONNECT 0x0004UL
+#define TOPSITE_SORT_TIME 0x0008UL
#define USER_SORT_REVERSE SORT_REVERSE
#define USER_SORT_BYTES 0x0002UL
#
#topsites_num 100
-# TAG: topsites_sort_order CONNECT|BYTES A|D
+# TAG: topsites_sort_order CONNECT|BYTES|TIME A|D
# Sort for topsites report, where A=Ascendent, D=Descendent
#
#topsites_sort_order CONNECT D
if((TopsitesSort & TOPSITE_SORT_CONNECT) != 0) {
sortf="-k 1,1 -k 2,2";
- } else {
+ } else if((TopsitesSort & TOPSITE_SORT_BYTES) != 0) {
sortf="-k 2,2 -k 1,1";
+ } else if((TopsitesSort & TOPSITE_SORT_TIME) != 0) {
+ sortf="-k 3,3";
+ } else {
+ sortf="-k 2,2 -k 1,1"; //default is BYTES
}
if((TopsitesSort & TOPSITE_SORT_REVERSE) != 0) {
sortt="-r";