Changeset 916


Ignore:
Timestamp:
08/12/13 16:45:18 (11 years ago)
Author:
sdipsl
Message:

add IGCM_sys_Cp to the instrumented functions list
fix a bug. In this syntax, length is a length not an indice ${variable:start:length}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh

    r915 r916  
    293293      elif [ [ ${#arguments[*]} -ge 3 ] ; then 
    294294       # All but the latest 
    295         fileList=${arguments[*]:0:${#arguments[*]}-2} 
     295        fileList=${arguments[*]:0:${#arguments[*]}-1} 
    296296        # just need the first file to get the directory 
    297297        source=${arguments[0]} 
     
    301301        entitySize=$( IGCM_debug_sizeOfTabContent fileList ) 
    302302      fi 
     303      ;; 
     304 
     305    # Classical copy (only files are given to IGCM_sys_Cp as options) 
     306    IGCM_sys_Cp) 
     307      instrumentation=true       
     308      # All but the latest 
     309      fileList=${arguments[*]:0:${#arguments[*]}-1} 
     310      # just need the first file to get the directory 
     311      source=${arguments[0]} 
     312      # Nothing but the latest 
     313      dest=${arguments[${#arguments[*]}-1]} 
     314      # Size of file whose name are stored in a list 
     315      entitySize=$( IGCM_debug_sizeOfTabContent fileList ) 
    303316      ;; 
    304317 
Note: See TracChangeset for help on using the changeset viewer.