]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Move a constant call outside of the loop
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Mon, 27 Dec 2010 15:55:44 +0000 (15:55 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Mon, 27 Dec 2010 15:55:44 +0000 (15:55 +0000)
report.c

index fdc350c5ce62182df95c6e0f161f74c040e3cbe7..935b88a56364cc65c278daca1c542f31df597919 100644 (file)
--- a/report.c
+++ b/report.c
@@ -105,6 +105,7 @@ void gerarel(void)
 
        puinfo=NULL;
        fp_tt=NULL;
+       sort_labels(&sort_field,&sort_order);
 
        uscan=userinfo_startscan();
        if (uscan == NULL) {
@@ -132,7 +133,6 @@ void gerarel(void)
 
                maketmp(user,tmp,debug,indexonly);
                maketmp_hour(user,tmp,indexonly);
-               sort_labels(&sort_field,&sort_order);
 
                ttopen=0;
                oldurltt=NULL;