Changeset 1234 for trunk/libIGCM
- Timestamp:
- 09/03/15 17:12:53 (9 years ago)
- Location:
- trunk/libIGCM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh
r1231 r1234 128 128 typeset buffer send_messages mail_frequency 129 129 typeset last_mail_date__file 130 typeset secondsBetweenRefAndLastMail secondsSinceLastMail 130 131 131 132 b64_encoded_msg=$1 … … 148 149 else 149 150 # compute last time the file was changed (in seconds) 150 seconds_since_last_mail=$(( $(date +%s) - $(stat -c %Y ${last_mail_date__file}) )) 151 secondsBetweenRefAndLastMail=$(stat -c %Y ${last_mail_date__file}) 152 status=$? 153 # 154 if [ ${status} -gt 0 ] ; then 155 IGCM_debug_Exit "IGCM_debug_send_AMQP_msg__MAILTUNNEL" 156 fi 157 secondsSinceLastMail=$(( $(date +%s) - ${secondsBetweenRefAndLastMail} )) 151 158 # send message when exceeding threshold 152 [ ${seconds _since_last_mail} -gt ${mail_frequency} ] && send_messages=1159 [ ${secondsSinceLastMail} -gt ${mail_frequency} ] && send_messages=1 153 160 fi 154 161 -
trunk/libIGCM/libIGCM_sys/libIGCM_sys.ksh
r1204 r1234 700 700 701 701 typeset NB_ESSAI DELAI status i exist skip 702 typeset fileDeviceNumberInHex directoryDeviceNumberInHex 702 703 703 704 # number of tentative … … 738 739 i=0 739 740 while [ $i -lt $NB_ESSAI ] ; do 740 if [ $( stat -c %d $1 ) -ne $( stat -c %d $( dirname $2 ) ) ] ; then 741 # USUAL WAY 741 # Identify file system 742 fileDeviceNumberInHex=$( stat -c %d $1 ) 743 status=$? 744 if [ ${status} -gt 0 ] ; then 745 IGCM_debug_Exit "IGCM_sys_PutBuffer_Out" 746 fi 747 # Identify file system 748 directoryDeviceNumberInHex=$( stat -c %d $( dirname $2 ) ) 749 status=$? 750 if [ ${status} -gt 0 ] ; then 751 IGCM_debug_Exit "IGCM_sys_PutBuffer_Out" 752 fi 753 754 if [ ${fileDeviceNumberInHex} -ne ${directoryDeviceNumberInHex} ] ; then 755 # They are not on the same device. USUAL WAY 742 756 \cp $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 743 757 status=$? 744 758 else 745 # NOT SOUSUAL WAY759 # They are on the same device. USUAL WAY 746 760 \mv $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 747 761 status=$? -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh
r1230 r1234 636 636 637 637 typeset NB_ESSAI DELAI status i exist skip 638 typeset fileDeviceNumberInHex directoryDeviceNumberInHex 638 639 639 640 # number of tentative … … 673 674 i=0 674 675 while [ $i -lt $NB_ESSAI ] ; do 675 if [ $( stat -c %d $1 ) -ne $( stat -c %d $( dirname $2 ) ) ] ; then 676 # USUAL WAY 676 # Identify file system 677 fileDeviceNumberInHex=$( stat -c %d $1 ) 678 status=$? 679 if [ ${status} -gt 0 ] ; then 680 IGCM_debug_Exit "IGCM_sys_Put_Out" 681 fi 682 # Identify file system 683 directoryDeviceNumberInHex=$( stat -c %d $( dirname $2 ) ) 684 status=$? 685 if [ ${status} -gt 0 ] ; then 686 IGCM_debug_Exit "IGCM_sys_Put_Out" 687 fi 688 689 if [ ${fileDeviceNumberInHex} -ne ${directoryDeviceNumberInHex} ] ; then 690 # They are not on the same device. USUAL WAY 677 691 \cp $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 678 692 status=$? 679 693 else 680 # NOT SO USUAL WAY694 # They are on the same device. NOT SO USUAL WAY 681 695 \mv $1 $2 > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 682 696 status=$?
Note: See TracChangeset
for help on using the changeset viewer.