Skip to content

Commit 15df283

Browse files
committed
Fix the example and make it more readable.
1 parent 02eb9aa commit 15df283

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/src/user-guide/guides-retention.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,12 @@ For example, let's say:
107107

108108
When the garbage collector runs, it will evaluate the archive's expiry criteria, substituting
109109
$08:00$ for $data\_timestamp$, and $01:01$ for $current\_time$, since $09:01$ AWST = $01:01$ UTC.
110-
The equation then becomes $is\_expired = (08:00 < 01:01 - 01:00)$, which evaluates to false. Thus,
111-
the garbage collector won't delete the archive; in fact, it won't delete it until $09:01$ UTC, which
112-
is 8 hours later than it should've been deleted.
110+
The equation then becomes...
111+
112+
$$is\_expired = (01:01 - 08:00 > 01:00)$$
113+
114+
... which evaluates to false. Thus, the garbage collector won't delete the archive; in fact, it
115+
won't delete it until $09:01$ UTC, which is 8 hours later than it should've been deleted.
113116

114117
Similarly, archives may be deleted prematurely if your log events use timestamps in a time zone that
115118
is behind UTC.

0 commit comments

Comments
 (0)