From 23c18a60c5d930336251b84985dbb9a1a6eebe61 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Sun, 30 Oct 2011 06:11:55 +0000 Subject: [PATCH] Minor update to match 2.6 stream code. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10920 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPpower.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/FSPpower.pm b/perl-xCAT/xCAT/FSPpower.pm index 6252daf47..5dd4ada76 100644 --- a/perl-xCAT/xCAT/FSPpower.pm +++ b/perl-xCAT/xCAT/FSPpower.pm @@ -135,7 +135,7 @@ sub powercmd_boot { # Attribute powerinterval in site table, # to control the rpower speed - if(defined($request->{'powerinterval'}) && ($request->{'powerinterval'} ne '')) { + if( defined($request->{'powerinterval'}) ) { Time::HiRes::sleep($request->{'powerinterval'}); } @@ -222,7 +222,7 @@ sub powercmd { # to control the rpower speed if (($action ne 'enter_rack_standby') && ($action ne 'exit_rack_standby') && ($action ne 'stat') && ($action ne 'status') && ($action ne 'state') && ($action ne 'off') && ($action ne 'softoff')) { - if(defined($request->{'powerinterval'}) && ($request->{'powerinterval'} ne '')) { + if( defined($request->{'powerinterval'}) ) { Time::HiRes::sleep($request->{'powerinterval'}); } }