X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=htmlandlogs.c;h=798544db52b6e0480dbe4166625c5cb3228057fb;hb=c5a58cd49c2e0be45739384880a1a172d79e2756;hp=b6f9cb66602c080c23b220dd177cd2076a95df98;hpb=9f552e96b7c3ed1b5af6578252c0154491132a10;p=svn%2FPrometheus-QoS%2F.git diff --git a/htmlandlogs.c b/htmlandlogs.c index b6f9cb6..798544d 100644 --- a/htmlandlogs.c +++ b/htmlandlogs.c @@ -22,6 +22,7 @@ extern int found_lmsid; extern char *lms_url; extern char *log_dir; extern char *ip6prefix; +extern int traffic_detected; const char *tr_odd_even(void); /* implemented in prometheus.c, shared with parselogs.c */ @@ -402,7 +403,7 @@ style=\"cursor: pointer;\">+%d]", insert(sum,sums,order_by,i); } - if(!just_preview) + if(!just_preview && traffic_detected) { append_log(ip); for_each(sharedip,ips) if(eq(ip->name, sharedip->sharing)) @@ -410,6 +411,10 @@ style=\"cursor: pointer;\">+%d]", append_log(sharedip); } } + else + { + printf("."); + } } fprintf(f, "\n\ %d CLASSES", i);