aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-07-23 11:33:13 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2011-01-26 18:20:24 -0500
commit5a648736360fb4038ad2e1c01a5922bda206e297 (patch)
tree33410e77ee67a9365a10920266d02eebe574601e /bin
parentca501a7f388e84b3698d96c8068b23ed83283d30 (diff)
[NPS-F] Adapt to new add_server() API and fix parameters order
- comply with new add_server() API - fix wrong order in parameters for rt_launch_npsf.c
Diffstat (limited to 'bin')
-rw-r--r--bin/npsf_add_server.c4
-rw-r--r--bin/rtspin_npsf.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/npsf_add_server.c b/bin/npsf_add_server.c
index 9fa59c0..9f3f92c 100644
--- a/bin/npsf_add_server.c
+++ b/bin/npsf_add_server.c
@@ -62,7 +62,7 @@ int main(int argc, char** argv)
62 /* different notional processor */ 62 /* different notional processor */
63 /* add server */ 63 /* add server */
64 printf("Adding npsf_id = %d\n", curr_id); 64 printf("Adding npsf_id = %d\n", curr_id);
65 ret = add_server(&curr_id, budgets); 65 ret = add_server(&curr_id, budgets, 0);
66 66
67 if (ret < 0) { 67 if (ret < 0) {
68 fclose(file); 68 fclose(file);
@@ -94,7 +94,7 @@ int main(int argc, char** argv)
94 } 94 }
95 95
96 /* save the last entry */ 96 /* save the last entry */
97 ret = add_server(&curr_id, budgets); 97 ret = add_server(&curr_id, budgets, 1);
98 printf("Adding npsf_id = %d\n", curr_id); 98 printf("Adding npsf_id = %d\n", curr_id);
99 if (ret < 0) { 99 if (ret < 0) {
100 fclose(file); 100 fclose(file);
diff --git a/bin/rtspin_npsf.c b/bin/rtspin_npsf.c
index 87eb52f..d5dff3d 100644
--- a/bin/rtspin_npsf.c
+++ b/bin/rtspin_npsf.c
@@ -195,7 +195,7 @@ int main(int argc, char** argv)
195 return 0; 195 return 0;
196 } 196 }
197 197
198 if (argc - optind < 3) 198 if (argc - optind < 5)
199 usage("Arguments missing."); 199 usage("Arguments missing.");
200 wcet_ms = atof(argv[optind + 0]); 200 wcet_ms = atof(argv[optind + 0]);
201 period_ms = atof(argv[optind + 1]); 201 period_ms = atof(argv[optind + 1]);