Skip to content

Commit

Permalink
gh-30 update
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknow0 committed Apr 14, 2024
1 parent edf0396 commit ee42041
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 118 deletions.
6 changes: 4 additions & 2 deletions bench/result.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ parse()

while read t a n e
do
end[$s:$n]=$t
done < <(sort -t , -r -k 3,1n "$1" | sort -t , -k 3 -u)
l=end[$s:$n]
e=$(($t+$a ))
[[ -z $l || $l -lt $n ]] && end[$s:$n]=$e
done < <(sort -t , -r -k 3,1n "$1")
}

for i in $1/*.csv; do parse "$i"; done
Expand Down
Loading

0 comments on commit ee42041

Please sign in to comment.