Commit 7e387000 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Amélioration du formatage

parent d832adc9
......@@ -61,16 +61,16 @@ irods_push(){
start=$(date +%s)
duration=$(($(date +%s)-$start))
throughput=$(($SIZEMB / $duration ))
if [[ $IPUTRC -ne 0 ]]; then
echo "[$KEY] Error 011 sending file to irods. The command was: $COMMAND"
format_report $KEY $SIZEMB $(date +%Y-%m-%dT%H%M%S --date=@$start) $duration $throughput 'Error 011. Transfer cancelled' >> $LOCAL_REPORT
format_report $KEY $SIZEMB $(date +%Y-%m-%dT%H%M%S --date=@$start) - - 'Error 011. Transfer cancelled' >> $LOCAL_REPORT
# Roll back
irods_rollback $KEY
# Alert to zabbix
zabbix_err "${KEY}:Error 011"
duration=$(($(date +%s)-$start))
throughput=$(($SIZEMB / $duration ))
echo "[$KEY] staging.tar data sent, let's commit everything on irods server"
format_report $KEY $SIZEMB $(date +%Y-%m-%dT%H%M%S --date=@$start) $duration $throughput 'OK' >> $LOCAL_REPORT
irods_commit $KEY
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment