From 3801123163d78896a05fb26323deb7c0fa8c7f8e Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 29 Dec 2007 21:15:42 +0000 Subject: make ./test/idiscover show expiration data Signed-off-by: Michael Krelin --- (limited to 'test') diff --git a/test/idiscover.cc b/test/idiscover.cc index 05cbcae..873da12 100644 --- a/test/idiscover.cc +++ b/test/idiscover.cc @@ -36,8 +36,10 @@ int main(int argc,char **argv) { << "User-supplied ID: " << argv[a] << endl << "Normalized ID: " << discovery.normalized_id << endl << "Canonicalized ID: " << discovery.canonicalized_id << endl - << "The identity is " << (discovery.xri_identity?"":"not ") << "an i-name" << endl - << endl + << "The identity is " << (discovery.xri_identity?"":"not ") << "an i-name" << endl; + if(discovery.xrd.expires) + clog << "Information expires in " << discovery.xrd.expires-time(0) << " seconds" << endl; + clog << endl << "CanonicalID: " << discovery.xrd.canonical_ids << endl << "LocalID: " << discovery.xrd.local_ids << endl << "Services: " << discovery.xrd.services << endl; -- cgit v0.9.0.2