The San Francisco Giants have reached an agreement with free-agent Tim Hudson.

The deal is reportedly worth $23 million over two seasons.

Hudson went 8-7 with a 3.97 ERA in 21 starts this season for Atlanta, with his season cut short by a broken ankle.