Changeset 25559 for main/trunk/greenstone2/runtime-src/src
- Timestamp:
- 2012-05-09T19:46:00+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/recpt/pingaction.cpp
r22984 r25559 57 57 ostream &logout) { 58 58 bool wassuccess = false; 59 comerror_t err ;59 comerror_t err = noError; 60 60 61 61 recptproto *collectproto = protos->getrecptproto (args["c"], logout); … … 63 63 collectproto->ping (args["c"], wassuccess, err, logout); 64 64 if (err != noError) wassuccess = false; // a communication error 65 } else if (args["c"].empty()){ // ping-ed just the main URL 66 wassuccess = true; 65 67 } 66 68 … … 70 72 << "<title>Ping</title>\n" 71 73 << "</head>\n" 72 << "<body>\n" 73 << "Ping for \"" << args["c"] << "\" "; 74 << "<body>\n"; 75 if(args["c"].empty()) { 76 textout << outconvert << "Ping"; 77 } else { 78 textout << outconvert << "Ping for \"" << args["c"] << "\""; 79 } 74 80 75 81 if (wassuccess) {
Note:
See TracChangeset
for help on using the changeset viewer.