mirror of
https://github.com/schoebel/mars
synced 2024-12-12 18:01:21 +00:00
marsadm: fix wrong lognr result in corner case
This commit is contained in:
parent
6559c534be
commit
474d7d0a05
@ -749,6 +749,7 @@ sub get_amount {
|
|||||||
return (0, 0, 0, 0) if $replay_link !~ m:log-([0-9]+)-[^,]+,([0-9]+),([0-9]+):;
|
return (0, 0, 0, 0) if $replay_link !~ m:log-([0-9]+)-[^,]+,([0-9]+),([0-9]+):;
|
||||||
$firstpos = int($1);
|
$firstpos = int($1);
|
||||||
$logpos = $firstpos;
|
$logpos = $firstpos;
|
||||||
|
$oldpos = $firstpos;
|
||||||
if ($direction < 0) {
|
if ($direction < 0) {
|
||||||
$sum = $2;
|
$sum = $2;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user