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 |
|
} |