mirror of https://github.com/schoebel/mars
marsadm: fix writeback-rest
This commit is contained in:
parent
b533bb7a06
commit
2dbe94302c
|
@ -4585,11 +4585,8 @@ sub eval_fn {
|
|||
return eval_fn($env, "$what-lognr", "") - eval_fn($env, "replay-lognr", "");
|
||||
}
|
||||
if (/^writeback[-_]?rest$/) {
|
||||
my $lnk = $$env{"resdir"} . "/replay-" . $$env{"host"};
|
||||
my $link = get_link($lnk, 1);
|
||||
$link =~ m/,([0-9]+)$/;
|
||||
return $1 if defined($1);
|
||||
return 0;
|
||||
my ($sum, $firstpos, $logpos, $level) = get_amount($$env{"resdir"}, $$env{"host"}, 1, 0);
|
||||
return $sum;
|
||||
}
|
||||
if (/^(replay|work)[-_]?(pos)$/) {
|
||||
my $what = $1;
|
||||
|
|
Loading…
Reference in New Issue