mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-15 11:31:15 +00:00
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:
parent
6bce9c70ed
commit
0fd619a44f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user