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

Comparing HostUpdate/HostUpdate.cpp (file contents):
Revision 17 by Douglas Thrift, 2003-11-10T11:08:33-08:00 vs.
Revision 19 by Douglas Thrift, 2003-11-10T19:46:19-08:00

# Line 150 | Line 150 | void HostUpdate::display()
150                  cout << "host=" << host.getHost() << '\n'
151                          << "name=" << host.getName() << '\n'
152                          << "address=" << host.getAddress() << '\n'
153 <                        << "platform=" << host.getPlatform() << "\n\n";
153 >                        << "platform=" << host.getPlatform() << '\n';
154 >
155 >                string name = string("hosts") + slash + host.getHost();
156 >                struct stat file;
157 >
158 >                if (stat(name.c_str(), &file) == 0)
159 >                {
160 >                        char since[20];
161 >
162 >                        strftime(since, 20, "%m/%d/%Y %H:%M:%S", gmtime(&file.st_mtime));
163 >
164 >                        cout << "since=" << since << " GMT\n";
165 >                }
166          }
167   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines