Changeset 28158 for trunk/Ohana/src/opihi/pcontrol/CheckIdleHost.c
- Timestamp:
- May 28, 2010, 11:51:46 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/CheckIdleHost.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/CheckIdleHost.c
r26411 r28158 8 8 static float MAX_WANTHOST_WAIT = 10.0; 9 9 static float MAX_CONNECT_TIME = 36000.0; 10 static FILE *logfile = NULL;11 10 12 11 /* if this host has been connected for too long, disconnect (will automatically reconnect) */ … … 35 34 struct timeval now; 36 35 float dtime; 37 38 if (logfile == NULL) {39 logfile = fopen ("pcontrol.log", "w");40 }41 36 42 37 ASSERT (host, "host not set"); … … 69 64 host[0].job = (struct Job *) job; 70 65 71 // if (logfile) fprintf (logfile, "start needhost %s (job host %s) : %s\n", host[0].hostname, job[0].hostname, job[0].argv[0]);66 // gprint (GP_ERR, "start needhost %s (job host %s) : %s\n", host[0].hostname, job[0].hostname, job[0].argv[0]); 72 67 AddMachineJob (host, job); 73 68 … … 90 85 host[0].job = (struct Job *) job; 91 86 92 // if (logfile) fprintf (logfile, "start wanthost %s (job host %s) : %s\n", host[0].hostname, job[0].hostname, job[0].argv[0]);87 // gprint (GP_ERR, "start wanthost %s (job host %s) : %s\n", host[0].hostname, job[0].hostname, job[0].argv[0]); 93 88 AddMachineJob (host, job); 94 89 … … 111 106 host[0].job = (struct Job *) job; 112 107 113 // if (logfile) fprintf (logfile, "start anyhost %s (job host %s) : %s\n", host[0].hostname, job[0].hostname, job[0].argv[0]);108 // gprint (GP_ERR, "start anyhost %s (job host %s) : %s\n", host[0].hostname, job[0].hostname, job[0].argv[0]); 114 109 AddMachineJob (host, job); 115 110 … … 133 128 if (!CheckMachineJobs (host, job)) continue; 134 129 135 if (logfile) fprintf (logfile, "start wanthost(2) %s (job host %s) : %s\n", host[0].hostname, job[0].hostname, job[0].argv[0]);130 gprint (GP_ERR, "start wanthost(2) %s (job host %s) : %s\n", host[0].hostname, job[0].hostname, job[0].argv[0]); 136 131 AddMachineJob (host, job); 137 132
Note:
See TracChangeset
for help on using the changeset viewer.
