Commit 30bc3641 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Date format

parent 7cc6056e
......@@ -63,7 +63,7 @@ irods_push(){
IPUTRC=$?
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) - - '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
......@@ -72,7 +72,7 @@ irods_push(){
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
format_report $KEY $SIZEMB $(date +%Y-%m-%dT%H:%M:%S --date=@$start) $duration $throughput 'OK' >> $LOCAL_REPORT
irods_commit $KEY
fi
# Send report to irods
......@@ -244,7 +244,7 @@ for dir in $(find . -maxdepth 3 -type d | sort); do
# If the hashes differs, then move distant file and push this one
if [[ "$local_sha" = "$irods_sha" ]]; then
echo "[$KEY] The archive on irods is the same as our version. Skipping."
format_report $KEY "-" $(date +%Y-%m-%dT%H%M%S --date=@$start) "-" "-" "Skipped" >> $LOCAL_REPORT
format_report $KEY "-" $(date +%Y-%m-%dT%H:%M:%S --date=@$start) "-" "-" "Skipped" >> $LOCAL_REPORT
continue
fi
fi
......
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