Skip to content

Commit ab4c252

Browse files
committed
Update cfs.c
1 parent c973541 commit ab4c252

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

cfs.c

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include <stdio.h>
22
#include <string.h>
33

4+
#include "distribute.h"
5+
46
#define MIN_ARGS_C 16
57
#define MIN_ARGS_F 7
68
#define MIN_ARGS 2
@@ -14,6 +16,11 @@ int main(int argc, char const *argv[])
1416
}
1517
else
1618
{
19+
int minPrio, maxPrio;
20+
int avgPL, minPL, maxPL, distPL;
21+
int avgIAT, minIAT, maxIAT, distIAT;
22+
int rqLen;
23+
1724
char prog_mode[2];
1825
strcpy(prog_mode, argv[1]);
1926

@@ -25,6 +32,12 @@ int main(int argc, char const *argv[])
2532
exit(-1);
2633
}
2734
// Take command line parameters
35+
minPrio = atoi(argv[2]); maxPrio = atoi(argv[3]);
36+
distPL = argv[4]; avgPL = atoi(argv[5]); minPL = atoi(argv[6]); maxPL = atoi(argv[7]);
37+
distIAT = argv[8]; avgIAT = atoi(argv[9]); minIAT = atoi(argv[10]); maxIAT = atoi(argv[11]);
38+
rqLen = atoi(argv[12]);
39+
40+
2841

2942
}
3043
else if ( strcmp(prog_mode, "F") == 0 )
@@ -39,6 +52,6 @@ int main(int argc, char const *argv[])
3952

4053
// Continue execution
4154
}
42-
55+
4356
return 0;
4457
}

0 commit comments

Comments
 (0)