From 9bb2e87a4f11e57d78efc378393ac0e1194b123b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vl=C4=8Dek?= Date: Thu, 23 Apr 2026 22:37:54 +0000 Subject: [PATCH] Aktualizovat du6/a_station.c --- du6/a_station.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/du6/a_station.c b/du6/a_station.c index c3b73f8..b6369a7 100644 --- a/du6/a_station.c +++ b/du6/a_station.c @@ -49,7 +49,9 @@ int select_track(struct station* station, const char* target) hash_value = (hash_value * 33) + target[i]; i++; } - return 0; + unsigned long index = hash_value % station->track_count; + + return index; } void add_target_capacity(struct station* station,const char* target, int capacity)