- Timestamp:
- Jan 11, 2012, 11:19:21 PM (15 years ago)
- Location:
- branches/meh_branches/ppsub_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Ohana/src/opihi/pcontrol/job.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppsub_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppsub_test/Ohana/src/opihi/pcontrol/job.c
r29558 r33098 5 5 char *Host = NULL; 6 6 char **targv = NULL; 7 int i, N, Mode, targc, Timeout ;7 int i, N, Mode, targc, Timeout, priority; 8 8 IDtype JobID; 9 9 char **xhosts = NULL; … … 43 43 } 44 44 45 priority = 0; 46 if ((N = get_argument (argc, argv, "-nice"))) { 47 remove_argument (N, &argc, argv); 48 priority = atoi (argv[N]); 49 remove_argument (N, &argc, argv); 50 } 51 45 52 xhosts = NULL; 46 53 Nxhosts = 0; … … 60 67 } 61 68 62 if (argc < 2) { 63 FREE (Host); 64 goto usage; 65 } 69 if (argc < 2) goto usage; 66 70 67 71 targc = argc - 1; … … 72 76 73 77 // a JobID < 0 mean the job was not accepted 74 JobID = AddJob (Host, Mode, Timeout, targc, targv, Nxhosts, xhosts);78 JobID = AddJob (Host, Mode, Timeout, priority, targc, targv, Nxhosts, xhosts); 75 79 gprint (GP_LOG, "JobID: %d\n", (int) JobID); 76 80 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
