[Frontier] Take into account the new max-size parameter.

Note that this partially breaks the replayability of previous logs.

Use sed to fix this issue...