From: xchaos Date: Sun, 13 May 2012 22:18:18 +0000 (+0000) Subject: table formatting X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=e64e760d50046e48f3520045970878a4687a19e2;p=svn%2FPrometheus-QoS%2F.git table formatting git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@177 251d49ef-1d17-4917-a970-b30cf55b089b --- diff --git a/prometheus.c b/prometheus.c index 26d6b08..0870bce 100644 --- a/prometheus.c +++ b/prometheus.c @@ -1659,7 +1659,9 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version); printf("Total groups: %d Total bandwidth requested: %d kb/s\nAGGREGATION: 1/%d\n", count, i, i/line); #endif - fprintf(f,"Line %Ld kb/s",line); + fprintf(f,"\n\ +\n\ +Line %Ld kb/s",line); fprintf(f,"%d%d kb/s",total,i); for_each(keyword, keywords) @@ -1669,7 +1671,7 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version); fprintf(f,"Aggregation 1/%d\n", (int)(0.5+i/line)); fprintf(f,"%d traffic classes\n", keywordcount, total); - fputs("\n",f); + fputs("\n",f); } else if(!dry_run && !just_flush) { @@ -1707,8 +1709,8 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version); min\n\ max\n\ limit\n\ -prio\n\ -\n\ + \n\ +\n\ #\n\ hostname [+sharing]\n\ LMS\n\ @@ -1720,7 +1722,7 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version); kb/s\n\ kb/s\n\ kb/s\n\ - \n\ +prio\n\ \n",f); row_odd_even = 0; @@ -1854,14 +1856,15 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version); } } } - fprintf(f,"%d CLASSES", colspan-7, i); + fprintf(f,"\n\ +%d CLASSES", colspan-7, i); fprintf(f,"%Lu%Lu\n", total_traffic, total_direct); if(qos_proxy) { fprintf(f,"%Lu\n", total_proxy); } fprintf(f,"%Lu", total_upload); - fprintf(f,"FUP-LIMIT %dx LOW-PRIO %dx\n\n",limit_count,prio_count); + fprintf(f,"LIMIT %dx LOW-PRIO %dx\n\n",limit_count,prio_count); row_odd_even = 0; if(active_classes>10)