-Have xCAT IPMI eventlog not attempt time correction if the current BMC time appears to be pre-set state

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@991 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-04-07 15:49:36 +00:00
parent 7fd680a191
commit 841703c829

View File

@ -2361,7 +2361,11 @@ sub eventlog {
\@returnd
);
$tfactor = $returnd[40]<<24 | $returnd[39]<<16 | $returnd[38]<<8 | $returnd[37];
$tfactor -= time();
if ($tfactor > 0x20000000) {
$tfactor -= time();
} else {
$tfactor = 0;
}
@cmd=(0x40);
$error = docmd(