Aktualizovat du6/a_station.c

This commit is contained in:
Tomáš Vlček 2026-04-23 22:37:54 +00:00
parent 4cae57030f
commit 9bb2e87a4f

View File

@ -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)