Baby had fever and not feeding

Ramya

Hi, my baby is 5 weeks 5 days old and has UTI and been having medication for that. He usually feeds around 10mins per feed every two hours. Now he is only feeding 5mins per feed and sleepy. Is that okay, is he having enough feeds or is he sleepy because of the medication and sleeping hungry