Skip to content

Commit c4cebcc

Browse files
committed
Fix ordinal numbers
Change-Id: I9a8cac0efb5d3d24cd19c8a3082516e4840cf5b1
1 parent 7e55c78 commit c4cebcc

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

.werks/18049.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ These parameters can be configured per host (explicit match or regex).
2525

2626
This may be useful for hosts with few changes within a long period of time.
2727

28-
* Remove history entries right after the `X` th entry.
28+
* Remove history entries right after entry number `X`.
2929

3030
This may be useful for hosts with many changes within a short period of time.
3131

3232
* **Defensive cleanup strategy:** Remove history entries older than the configured file age **AND**
33-
remove history entries right after the `X` th entry.
33+
remove history entries right after entry number `X`.
3434

3535
See example below.
3636

3737
* **Offensive cleanup strategy:** Remove history entries older than the configured file age **OR**
38-
remove history entries right after the `X` th entry.
38+
remove history entries right after entry number `X`.
3939

4040
See example below.
4141

@@ -54,7 +54,7 @@ is also configurable. Abandoned host files include
5454

5555
* Delta cache files
5656

57-
The default is set to `Remove history entries older than 400 days and remove history entries right after the 100 th entry` for new sites.
57+
The default is set to `Remove history entries older than 400 days and remove history entries right after entry number 100` for new sites.
5858
Existing sites don't have a default.
5959

6060
The housekeeping job runs once a day.
@@ -63,7 +63,7 @@ The housekeeping job runs once a day.
6363

6464
`now = 11`, `history entries = [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]` (represents the files and their timestamps)
6565

66-
* Remove history entries older than 6, remove history entries right after the 3rd entry
66+
* Remove history entries older than 6, remove history entries right after entry number 3
6767

6868
* Intermediate result `file age`: `[5, 4, 3, 2, 1]`
6969

@@ -73,7 +73,7 @@ The housekeeping job runs once a day.
7373

7474
* Result of **OR**: Remove `[7, 6, 5, 4, 3, 2, 1]` (it's the union of both intermediate results)
7575

76-
* Remove history entries older than 4, remove history entries right after the 6th entry
76+
* Remove history entries older than 4, remove history entries right after entry number 6
7777

7878
* Intermediate result `file age`: `[7, 6, 5, 4, 3, 2, 1]`
7979

cmk/gui/inventory/_housekeeping.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ def _vs_file_age_history_entries() -> Age:
5353

5454
def _vs_number_of_history_entries() -> Integer:
5555
return Integer(
56-
title=_("Remove history entries right after the"),
56+
title=_("Remove history entries right after"),
57+
label=_("entry number"),
5758
default_value=100,
58-
unit=_("th entry"),
5959
minvalue=1,
6060
size=4,
6161
)
@@ -72,7 +72,7 @@ def _vs_choices() -> CascadingDropdown:
7272
),
7373
(
7474
"number_of_history_entries",
75-
_("Remove history entries right after the"),
75+
_("Remove history entries right after"),
7676
_vs_number_of_history_entries(),
7777
),
7878
(

0 commit comments

Comments
 (0)