diff options
Diffstat (limited to 'kpov_judge/tasks/snmp_agent_uptime')
-rw-r--r-- | kpov_judge/tasks/snmp_agent_uptime/task.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kpov_judge/tasks/snmp_agent_uptime/task.py b/kpov_judge/tasks/snmp_agent_uptime/task.py index b0c4dd9..dd8880e 100644 --- a/kpov_judge/tasks/snmp_agent_uptime/task.py +++ b/kpov_judge/tasks/snmp_agent_uptime/task.py @@ -169,6 +169,7 @@ def task_check(results, params): #TODO improve regex import re score = 0 + hints = [] client_script_uptime = int(results['client_script'].strip()) client_uptime = int(results['client_uptime'].strip()) d = client_uptime - client_script_uptime*60 @@ -195,8 +196,7 @@ def task_check(results, params): score += 3 if results['client_script2'].find(params['SNMP_VALUE']) >= 0: score += 4 - print score - return score + return score, hints def prepare_disks(templates, params): # d = templates['simpleArbiterDhcp'] |