Changeset 54
- Timestamp:
- Feb 1, 2010, 9:23:47 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anr/gantt.l
r52 r54 628 628 int tn,stn,dn,v=0; 629 629 double an1=0,an2=0,an3=0,an=0; 630 double tsk1,tsk2,tsk3,tsk; 630 631 int newlineadded=1; 631 632 for (tn=0 ; tn<T_MAX ; tn++) { … … 635 636 fprintf(curr->os,"\\hline "); 636 637 } 638 tsk1=tsk2=tsk3=tsk=0; 637 639 for (stn=0; stn<S_MAX; stn++) { 638 640 for (dn=0; dn<D_MAX; dn++) { … … 650 652 fprintf(curr->os,"%s & %s & %2.1f & %2.1f & %2.1f & %2.1f \\\\\\hline\n", 651 653 label,title,sum1,sum2,sum3,sum); 652 an1 += sum1 ; 653 an2 += sum2 ; 654 an3 += sum3 ; 655 an += sum ; 654 an1 += sum1 ; tsk1 += sum1 ; 655 an2 += sum2 ; tsk2 += sum2 ; 656 an3 += sum3 ; tsk3 += sum3 ; 657 an += sum ; tsk += sum ; 656 658 newlineadded=0; 657 659 if ( (sum1!=0 && sum1>last->nbma[0] ) || (sum1==0 && last->nbma[0]!=0) ) … … 666 668 } 667 669 } 670 if (tsk!=0) 671 fprintf(curr->os,"%s & total Task-%d & %2.1f & %2.1f & %2.1f & %2.1f \\\\\\hline\n", 672 "",curr->ls[tn][0][0][0]->tn,tsk1,tsk2,tsk3,tsk); 673 668 674 } 669 675 if ( an!=(an1+an2+an3) ) { 670 676 fprintf(stderr,"bad computation in %s table.\n",part->file); 671 677 } 678 fprintf(curr->os,"\\hline\n"); 672 679 fprintf(curr->os,"%s & %s & %2.1f & %2.1f & %2.1f & %2.1f \\\\\\hline\n", 673 680 "","total",an1,an2,an3,an);
Note: See TracChangeset
for help on using the changeset viewer.