If the topusers report is requested but not the users_sites report, the
links to the time and graphs reports are included in the topusers list but
the files were not generated. Now, they are.
totelap=globstat.elap;
ntotuser=globstat.totuser;
- greport_prepare();
-
sort_labels(&sort_field,&sort_order);
uscan=userinfo_startscan();
}
tmpsort(uinfo);
- report_day(uinfo);
- greport_day(uinfo);
-
if (snprintf(arqin,sizeof(arqin),"%s/htmlrel.txt",tmp)>=sizeof(arqin)) {
debuga(_("Input file name too long: %s/htmlrel.txt\n"),tmp);
exit(EXIT_FAILURE);
}
userinfo_stopscan(uscan);
- greport_cleanup();
return;
}
FILE *fp_ou;
char wdirname[MAXLEN];
- if((ReportType & REPORT_TYPE_USERS_SITES) == 0) return(NULL);
if(datetimeby==0) return(NULL);
if (snprintf(wdirname,sizeof(wdirname),"%s/%s.htmp",tmp,user)>=sizeof(wdirname)) {
fputs("</tr></thead>\n",fp_top3);
+ greport_prepare();
+
ntopuser = 0;
if ((line=longline_create())==NULL) {
}
uinfo->topuser=1;
+ report_day(uinfo);
+ greport_day(uinfo);
+
fputs("<tr>",fp_top3);
posicao++;
fputs("</tr>\n",fp_top3);
}
+ greport_cleanup();
if(ntopuser && (TopUserFields & TOPUSERFIELDS_AVERAGE) != 0) {
fputs("<tr>",fp_top3);
char colsep;
struct getwordstruct gwarea;
- if((ReportType & REPORT_TYPE_USERS_SITES) == 0) return;
if (datetimeby==0) return;
if (snprintf(wdirname,sizeof(wdirname),"%s/%s.htmp",tmp,uinfo->filename)>=sizeof(wdirname)) {