summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/vlc_stream_rtp
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge/tasks/vlc_stream_rtp')
-rw-r--r--kpov_judge/tasks/vlc_stream_rtp/task.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/kpov_judge/tasks/vlc_stream_rtp/task.py b/kpov_judge/tasks/vlc_stream_rtp/task.py
index 246a743..f292ed1 100644
--- a/kpov_judge/tasks/vlc_stream_rtp/task.py
+++ b/kpov_judge/tasks/vlc_stream_rtp/task.py
@@ -73,6 +73,8 @@ def gen_params(user_id, params_meta):
def task_check(results, params):
import re
+ score = 0
+ hints = []
packs = results['tcpdump_hex'].split('> 239.255.255.255.9875: UDP, length')
p1 = packs[1]
p1_l = p1.split('\n')
@@ -88,7 +90,7 @@ def task_check(results, params):
params['PORT'])
if re.search(s, results['tcpdump']):
score += 5
- return score
+ return score, hints
def prepare_disks(templates, params):
# d = templates['simpleArbiterDhcp']