From 841703c82944874a9a43bffeaa72c118068cfec5 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 7 Apr 2008 15:49:36 +0000 Subject: [PATCH] -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 --- xCAT-server-2.0/lib/xcat/plugins/ipmi.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm b/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm index 6048c4af8..138ceb632 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm @@ -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(