Skip to content

Commit 8d555f6

Browse files
committed
fix message
1 parent c4a6394 commit 8d555f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

check-plugins/dir-size/dir-size

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ def main():
177177
msg = ''
178178
table_data = []
179179
alert_count = 0
180+
perfdata = ''
180181

181182
# convert human readable nagios ranges to something that the Linuxfabrik libraries
182183
# can understand
@@ -245,7 +246,7 @@ def main():
245246
state = lib.base.get_worst(state, table_data[i]['state'])
246247

247248
# build the message
248-
msg += f'{len(table_data)} {lib.txt.pluralize("file", len(table_data))} checked. '
249+
msg += f'{len(table_data)} {lib.txt.pluralize("directory", len(table_data))} checked. '
249250
if state == STATE_OK:
250251
msg += (
251252
f'{lib.txt.pluralize("", len(table_data), "It is,All are")}'
@@ -281,6 +282,7 @@ def main():
281282
],
282283
)
283284

285+
284286
# over and out
285287
lib.base.oao(msg, state, always_ok=args.ALWAYS_OK)
286288

0 commit comments

Comments
 (0)