Changeset d83b5e72
- Timestamp:
- 11/19/18 16:37:40 (4 years ago)
- Branches:
- develop
- Children:
- d5eb96d
- Parents:
- 0d451ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/stats/ipdist-parallel.c
r91852de2 rd83b5e72 426 426 427 427 /* Finaly output the results */ 428 printf("Generating output \"%s ipdist-%lu\"\n", stats_outputdir, tick);428 printf("Generating output \"%s/ipdist-%lu\"\n", stats_outputdir, tick); 429 429 430 430 /* Output the results */ 431 431 char outputfile[255]; 432 snprintf(outputfile, sizeof(outputfile), "%s ipdist-%lu.data", stats_outputdir, tick);432 snprintf(outputfile, sizeof(outputfile), "%s/ipdist-%lu.data", stats_outputdir, tick); 433 433 FILE *tmp = fopen(outputfile, "w"); 434 434 fprintf(tmp, "#time\t\trank\toctet1\t\t\t\toctet2\t\t\t\toctet3\t\t\t\toctet4\n"); … … 450 450 451 451 char outputfile_stats[255]; 452 snprintf(outputfile_stats, sizeof(outputfile_stats), "%s ipdist-%lu.stats", stats_outputdir, tick);452 snprintf(outputfile_stats, sizeof(outputfile_stats), "%s/ipdist-%lu.stats", stats_outputdir, tick); 453 453 tmp = fopen(outputfile_stats, "w"); 454 454 /* append stats data to end of file */ … … 632 632 633 633 while(1) { 634 int option_index ;634 int option_index = 0; 635 635 struct option long_options[] = { 636 636 { "set-uri", 1, 0, 'i' }, … … 672 672 case 'd': 673 673 stats_outputdir = optarg; 674 strcat(stats_outputdir, "/");674 break; 675 675 case '?': 676 676 break;
Note: See TracChangeset
for help on using the changeset viewer.