Changeset 26412
- Timestamp:
- Dec 15, 2009, 4:14:29 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/MachineOps.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/MachineOps.c
r26411 r26412 94 94 // machine = host[0].machine; 95 95 machine = FindMachineByName (host[0].hostname); 96 if (machine == NULL) return (FALSE); 96 97 97 98 machine[0].Nhosts --; … … 110 111 // find machine matching the real host name 111 112 machine = FindMachineByName (host[0].hostname); // Can this fail? 112 ASSERT (machine, "cannot find machine associated with host") 113 machine[0].NjobsRealhost ++;114 113 ASSERT (machine, "cannot find machine associated with host"); 114 machine[0].NjobsRealhost ++; 115 115 116 // skip jobs that do not have a targeted host 116 117 if (job[0].hostname == NULL) { … … 125 126 // find machine matching the want host name (these are running on an unwanted host) 126 127 machine = FindMachineByName (job[0].hostname); // Can this fail? 127 ASSERT (machine, "cannot find machine associated with host")128 machine[0].NjobsWanthost ++;128 if (machine == NULL) return (TRUE); 129 machine[0].NjobsWanthost ++; 129 130 130 131 return (TRUE); … … 137 138 // find machine matching the real host name 138 139 machine = FindMachineByName (host[0].hostname); // Can this fail? 139 ASSERT (machine, "cannot find machine associated with host") 140 machine[0].NjobsRealhost --;140 ASSERT (machine, "cannot find machine associated with host"); 141 machine[0].NjobsRealhost --; 141 142 142 143 // skip jobs that do not have a targeted host … … 152 153 // find machine matching the want host name 153 154 machine = FindMachineByName (job[0].hostname); // Can this fail? 154 ASSERT (machine, "cannot find machine associated with host")155 machine[0].NjobsWanthost --;155 if (machine == NULL) return (TRUE); 156 machine[0].NjobsWanthost --; 156 157 157 158 return (TRUE); … … 177 178 178 179 machine = FindMachineByName (job[0].hostname); 180 if (machine == NULL) return (TRUE); 179 181 // fprintf (stderr, "wanthost: %s, Ntotal: %d, Nmax: %d\n", job[0].hostname, machine[0].NjobsWanthost + machine[0].NjobsRealhost, machine[0].Nhosts + MAX_UNWANTED_HOST_JOBS); 180 182 // if (machine[0].NjobsWanthost + machine[0].NjobsRealhost >= machine[0].Nhosts + MAX_UNWANTED_HOST_JOBS) {
Note:
See TracChangeset
for help on using the changeset viewer.
