Print Unknown Time if the time is unknown of an event.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1366 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Steven Dake 2007-04-24 23:08:48 +00:00
parent 6bce9c70ed
commit 0fd619a44f

View File

@ -243,6 +243,9 @@ static char time_buf[1024];
char *ais_time_str(SaTimeT time)
{
time_t t;
if (time == SA_TIME_UNKNOWN) {
return "Unknown Time";
}
t = time / 1000000000ULL;
strcpy(time_buf, ctime(&t));
return time_buf;