- Timestamp:
- Oct 28, 2011, 6:38:09 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110906/Ohana/src/opihi/pcontrol/job.c
r29558 r32584 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; … … 72 79 73 80 // a JobID < 0 mean the job was not accepted 74 JobID = AddJob (Host, Mode, Timeout, targc, targv, Nxhosts, xhosts);81 JobID = AddJob (Host, Mode, Timeout, priority, targc, targv, Nxhosts, xhosts); 75 82 gprint (GP_LOG, "JobID: %d\n", (int) JobID); 76 83 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
