diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-09-16 09:13:34 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-09-16 09:18:53 +0200 |
commit | c5097633d01aedf9b5c47d0c3d059e58efaea95f (patch) | |
tree | 2f3cb92fdf761d1ba5fc6b7273875ad7b0cc6cf5 /src/gen_auc_txt.pl | |
parent | c74c6d8b179c284006c7d9dc16e3e4494bfe26bd (diff) |
CSV: store file offset of SQN so we can update it efficiently later
This requires that the SQN field is large enough (8 decimal digits), in
order to do in-place changes to the field in the CSV.
Diffstat (limited to 'src/gen_auc_txt.pl')
-rwxr-xr-x | src/gen_auc_txt.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gen_auc_txt.pl b/src/gen_auc_txt.pl index 14cae39..62b259a 100755 --- a/src/gen_auc_txt.pl +++ b/src/gen_auc_txt.pl @@ -9,5 +9,5 @@ my $COUNT = $ARGV[0]; my $i; for ($i = 0; $i < $COUNT; $i++) { - printf("90170%010u,5,%032u,%032u,0000,%u,0\n", $i, $i, $i, $i); + printf("90170%010u,5,%032u,%032u,0000,%08u,0\n", $i, $i, $i, $i); } |