LOCKPORT – A Niagara Falls man who has been in the Niagara County Jail for nearly two years on a crack cocaine charge was sentenced Friday to time served.

But he still must serve 30 months in a federal prison on a similar conviction.

Anthony D. Bones, 26, of A Street, had pleaded guilty in Niagara County Court to attempted fourth-degree criminal possession of a controlled substance, stemming from his arrest Jan. 8, 2012, in a traffic stop in Niagara Falls. He’s been behind bars ever since.