Aktualizovat du6/a_station.c
This commit is contained in:
parent
4cae57030f
commit
9bb2e87a4f
@ -49,7 +49,9 @@ int select_track(struct station* station, const char* target)
|
|||||||
hash_value = (hash_value * 33) + target[i];
|
hash_value = (hash_value * 33) + target[i];
|
||||||
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)
|
void add_target_capacity(struct station* station,const char* target, int capacity)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user