From ba68ad19483c0cc6aa1eb25ec48ec17bb8085bab Mon Sep 17 00:00:00 2001 From: chenglch Date: Wed, 1 Jun 2016 01:46:03 -0400 Subject: [PATCH] Change sleep time from 0.1 to 1 as float value is not support by default --- xCAT-server/lib/xcat/plugins/AAsn.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/AAsn.pm b/xCAT-server/lib/xcat/plugins/AAsn.pm index 49523111e..5d4a73ca5 100755 --- a/xCAT-server/lib/xcat/plugins/AAsn.pm +++ b/xCAT-server/lib/xcat/plugins/AAsn.pm @@ -1429,11 +1429,11 @@ sub enable_TFTPhpa foreach my $pid (keys %pids_map) { if (xCAT::Utils->is_process_exists($pid)) { $count++; - if($count >= 50) { - xCAT::MsgUtils->message("S","Error: can not stop tftp process in 5 seconds."); + if($count > 5) { + xCAT::MsgUtils->message("S","ERROR: Can not stop tftp process in 5 seconds."); return 1; } - sleep 0.1; + sleep 1; } else { delete $pids_map{$pid} }