Changeset 137
- Timestamp:
- 06/19/09 14:51:54 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/IGCM_add_out.awk
r132 r137 56 56 57 57 Information_found=0 58 Information_ksh_SX_found=0 58 59 vargas_found=0 59 60 … … 209 210 210 211 } 212 # Get information with time output on SX hosts 213 # ksh time 214 else if (match($0, "real *[0-9:.]*")) 215 { 216 myprint("ksh SX") 217 Information_ksh_SX_found=1 218 counter=counter+1 219 220 RealTime=0 221 if (match($2, "[0-9]*:[0-9]*:[0-9]*\\.[0-9]*")) 222 { 223 sub1=(match($2, ":")-1) 224 sub2=sub1+2 225 fin=(substr($2,sub2)) 226 sub3=(match(fin, ":")-1)+sub2 227 RealTime=(substr($2,1,sub1))*60+(substr($2,sub2,sub3)) 228 } 229 else if (match($2, "[0-9]*:[0-9]*\\.[0-9]*")) 230 { 231 RealTime=(substr($2,1,match($2, ":")-1)) 232 } 233 } 234 else if (Information_ksh_SX_found == 1 && match($0, "user *[0-9:.]*")) 235 { 236 myprint("ksh SX ") 237 238 UserTime=0 239 if (match($2, "[0-9]*:[0-9]*:[0-9]*\\.[0-9]*")) 240 { 241 sub1=(match($2, ":")-1) 242 sub2=sub1+2 243 fin=(substr($2,sub2)) 244 sub3=(match(fin, ":")-1)+sub2 245 UserTime=(substr($2,1,sub1))*60+(substr($2,sub2,sub3)) 246 } 247 else if (match($2, "[0-9]*:[0-9]*\\.[0-9]*")) 248 { 249 UserTime=(substr($2,1,match($2, ":")-1)) 250 } 251 } 252 else if (Information_ksh_SX_found == 1 && match($0, "sys *[0-9:.]*")) 253 { 254 myprint("ksh SX ") 255 256 SysTime=0 257 if (match($2, "[0-9]*:[0-9]*:[0-9]*\\.[0-9]*")) 258 { 259 sub1=(match($2, ":")-1) 260 sub2=sub1+2 261 fin=(substr($2,sub2)) 262 sub3=(match(fin, ":")-1)+sub2 263 SysTime=(substr($2,1,sub1))*60+(substr($2,sub2,sub3)) 264 } 265 else if (match($2, "[0-9]*:[0-9]*\\.[0-9]*")) 266 { 267 SysTime=(substr($2,1,match($2, ":")-1)) 268 } 269 } 211 270 # csh time 212 271 else if (match($0, "[0-9.]+u [0-9.]+s .+")) … … 273 332 #========================== 274 333 END { 334 335 myprint("exit_value : " exit_value) 336 myprint("counter : " counter) 275 337 276 338 if (! exit_value ) {
Note: See TracChangeset
for help on using the changeset viewer.