ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/HostStatus/HostStatus.cpp
(Generate patch)

Comparing HostStatus/HostStatus.cpp (file contents):
Revision 36 by Douglas Thrift, 2003-11-15T02:21:22-08:00 vs.
Revision 38 by Douglas Thrift, 2003-11-15T20:23:23-08:00

# Line 16 | Line 16 | int main(int argc, char* argv[])
16  
17   HostStatus::HostStatus()
18   {
19 + #ifndef __CYGWIN__
20          sputenv("TZ=:America/Los_Angeles");
21 + #else
22 +        sputenv("TZ= PST8PDT");
23 + #endif
24 +        tzset();
25  
26          string method = sgetenv("REQUEST_METHOD");
27  
# Line 140 | Line 145 | void HostStatus::header()
145   void HostStatus::footer()
146   {
147          cout << "</table>\n"
148 + /*              << "<pre>" << flush;
149 +
150 +        ipstream env("env");
151 +
152 +        do
153 +        {
154 +                string line;
155 +
156 +                getline(env, line);
157 +
158 +                cout << line << '\n';
159 +        }
160 +        while (env.good());
161 +
162 +        cout << "</pre>\n"*/
163                  << "</html>\n";
164   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines