marsadm: fix wrong lognr result in corner case

This commit is contained in:
Thomas Schoebel-Theuer 2016-04-18 11:42:44 +02:00
parent 6559c534be
commit 474d7d0a05

View File

@ -749,6 +749,7 @@ sub get_amount {
return (0, 0, 0, 0) if $replay_link !~ m:log-([0-9]+)-[^,]+,([0-9]+),([0-9]+):;
$firstpos = int($1);
$logpos = $firstpos;
$oldpos = $firstpos;
if ($direction < 0) {
$sum = $2;
} else {