mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 02:13:44 +01:00
Check would fail on first run
This commit is contained in:
parent
735b2795d8
commit
5d0df0bfe9
@ -34,7 +34,10 @@ def main():
|
|||||||
stat = get_stat()
|
stat = get_stat()
|
||||||
|
|
||||||
# Find shortest stat
|
# Find shortest stat
|
||||||
stat_length = len(old_stat) > len(stat) and len(old_stat) or len(stat)
|
if old_stat:
|
||||||
|
stat_length = len(old_stat) > len(stat) and len(old_stat) or len(stat)
|
||||||
|
else:
|
||||||
|
stat_length = len(stat)
|
||||||
|
|
||||||
if old_stat:
|
if old_stat:
|
||||||
diff = []
|
diff = []
|
||||||
|
Loading…
Reference in New Issue
Block a user