From: Eric Wong Date: Sun, 11 Jan 2015 04:43:59 +0000 (+0000) Subject: import_slrnspool: fix off-by-one error X-Git-Tag: v1.0.0~1093 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;ds=sidebyside;h=e80c2d9a9e3d891105ad7bfcd1369a020e6be185;p=public-inbox.git import_slrnspool: fix off-by-one error We start with zero and only store the next valid ID. --- diff --git a/scripts/import_slrnspool b/scripts/import_slrnspool index 560c08c2..fec7ebf1 100755 --- a/scripts/import_slrnspool +++ b/scripts/import_slrnspool @@ -25,7 +25,7 @@ use Data::Dumper; print STDERR Dumper($cfg); sub get_min { my ($cfg) = @_; - $cfg->{importslrnspoolstate} || 1 + $cfg->{importslrnspoolstate} || 0; } sub set_min {