mirror of
https://github.com/schoebel/mars
synced 2024-12-11 09:15:48 +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]+):;
|
||||
$firstpos = int($1);
|
||||
$logpos = $firstpos;
|
||||
$oldpos = $firstpos;
|
||||
if ($direction < 0) {
|
||||
$sum = $2;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user