]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - topsites.c
Sort the top sites report by number of users connecting the sites
[thirdparty/sarg.git] / topsites.c
index 7579016aa857f02959b32694af1b1c16387910e4..01ef7fdb0ec6fe32b89b42f5441d541891ca1a13 100644 (file)
@@ -192,6 +192,8 @@ void topsites(void)
                sortf="-k 2,2 -k 1,1";
        } else if((TopsitesSort & TOPSITE_SORT_TIME) != 0) {
                sortf="-k 3,3";
+       } else if((TopsitesSort & TOPSITE_SORT_USER) != 0) {
+               sortf="-k 4,4 -k 1,1 -k 2,2";
        } else {
                sortf="-k 2,2 -k 1,1"; //default is BYTES
        }