diff options
Diffstat (limited to 'www/webalizer/files/patch-output.c')
-rw-r--r-- | www/webalizer/files/patch-output.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/www/webalizer/files/patch-output.c b/www/webalizer/files/patch-output.c new file mode 100644 index 000000000000..67d38a128459 --- /dev/null +++ b/www/webalizer/files/patch-output.c @@ -0,0 +1,23 @@ +--- output.c.orig 2008-06-10 09:50:08.000000000 +0200 ++++ output.c 2008-06-20 18:43:04.000000000 +0200 +@@ -989,6 +989,20 @@ + hptr=*pointer++; + if (hptr->flag == OBJ_REG) + { ++#ifdef USE_CLICKABLE_REFERER ++ if (strstr(hptr->string,"://")!=NULL) ++ fprintf(out_fp, ++ "%-8llu %6.02f%% %8llu %6.02f%% %8.0f %6.02f%% " \ ++ "%8llu %6.02f%% <A HREF=\"%s\">%s</A>\n", ++ hptr->count, ++ (t_hit==0)?0:((float)hptr->count/t_hit)*100.0,hptr->files, ++ (t_file==0)?0:((float)hptr->files/t_file)*100.0,hptr->xfer/1024, ++ (t_xfer==0)?0:((float)hptr->xfer/t_xfer)*100.0,hptr->visit, ++ (t_visit==0)?0:((float)hptr->visit/t_visit)*100.0, ++ hptr->string, ++ hptr->string); ++ else ++#endif + fprintf(out_fp, + "%-8llu %6.02f%% %8llu %6.02f%% %8.0f %6.02f%% " \ + "%8llu %6.02f%% %s\n", |