From 5da4450890baa7f4837989860c672b8d20a95c63 Mon Sep 17 00:00:00 2001 From: xchaos Date: Mon, 28 Nov 2011 13:19:53 +0000 Subject: [PATCH] http://en.wikipedia.org/wiki/Enterprise_resource_planning git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@151 251d49ef-1d17-4917-a970-b30cf55b089b --- prometheus.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/prometheus.c b/prometheus.c index f158e32..c3461ca 100644 --- a/prometheus.c +++ b/prometheus.c @@ -620,7 +620,7 @@ void save_line(char *line) void run_restore(void) { - char *restor, *str; + char *restor; string(restor,STRLEN); /*-----------------------------------------------------------------*/ @@ -867,7 +867,7 @@ void parse_ip_log(int argc, char **argv) if(i>10) { - fputs("

\n",f); + fputs("

Enterprise Research and Planning (ERP)
\n",f); fputs("\n",f); fputs("\n",f); @@ -1658,7 +1658,6 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version); fclose(iplog); } } - } fprintf(f,"\ @@ -1676,7 +1675,7 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version); long long top20_perc2=0; unsigned long long top20_sum=0l; - fputs("

Enterprise Resource Planning (ERP)
Analytic categoryActive ClassesData transfers
SUMMARY:",colspan-7); fprintf(f,"%Lu M
\n",f); + fputs("

Enterprise Research and Planning (ERP)
\n",f); fputs("\n",f); fputs("\n",f); @@ -1732,18 +1731,18 @@ Credit: CZFree.Net, Martin Devera, Netdave, Aquarius, Gandalf\n\n",version); fprintf(f,"\n",sum->i,(100*sum->i+50)/active_classes,sum->l,(100*sum->l+50)/total); } - fprintf(f,"\n"); + fprintf(f,"\n", log_url); fprintf(f,"\n",active_classes,total); fputs("
Enterprise Resource Planning (ERP)
Analytic categoryActive ClassesData transfers
%d%d %%%Lu M%Ld %%
All users, all traffic
All users, all traffic%d100 %%%Lu M100 %%
\n", f); - /*write basic ERP data to log directory*/ + /* write basic ERP data to log directory */ if(!just_preview) { sprintf(str,"%s/ERP.log",log_dir); iplog=fopen(str,"a"); if(iplog) { - fprintf(iplog,"%ld\t%d\t%d %%\t%Lu\t%Ld %%\t%d\t%Lu\t%s", + fprintf(iplog,"%ld\t%d\t%d %%\t%Lu M\t%Ld %%\t%d\t%Lu M\t%s", time(NULL), top20_count, top20_perc1, top20_sum, top20_perc2, active_classes, total, d); /* d = date*/ fclose(iplog); } -- 2.30.2