File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
#include <stdio.h>
2
2
#include <string.h>
3
3
4
+ #include "distribute.h"
5
+
4
6
#define MIN_ARGS_C 16
5
7
#define MIN_ARGS_F 7
6
8
#define MIN_ARGS 2
@@ -14,6 +16,11 @@ int main(int argc, char const *argv[])
14
16
}
15
17
else
16
18
{
19
+ int minPrio , maxPrio ;
20
+ int avgPL , minPL , maxPL , distPL ;
21
+ int avgIAT , minIAT , maxIAT , distIAT ;
22
+ int rqLen ;
23
+
17
24
char prog_mode [2 ];
18
25
strcpy (prog_mode , argv [1 ]);
19
26
@@ -25,6 +32,12 @@ int main(int argc, char const *argv[])
25
32
exit (-1 );
26
33
}
27
34
// 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
+
28
41
29
42
}
30
43
else if ( strcmp (prog_mode , "F" ) == 0 )
@@ -39,6 +52,6 @@ int main(int argc, char const *argv[])
39
52
40
53
// Continue execution
41
54
}
42
-
55
+
43
56
return 0 ;
44
57
}
You can’t perform that action at this time.
0 commit comments