More than 20 months. That’s how long it had been since Gavin Floyd got a ‘W’ next to his name in a major-league game.

After 11 starts, six losses, one complicated elbow surgery and a long rehabilitation, Floyd ended his drought Monday night — and did it at one of the toughest places to pitch.

The veteran right-hander allowed just three hits and one run in 6 2/3 innings of a 3-1 victory against the Rockies to open a four-game series at Coors Field. Floyd (1-2) had three walks and four strikeouts.

Chris Johnson had three hits including two RBI singles for the Braves, who took a 2-0 lead in the fourth inning and avoided the kind of meltdowns they had while blowing similar leads in consecutive weekend losses at Arizona.

Impressive rookie Shae Simmons pitched a 1-2-3 eighth inning — striking out Troy Tulowitzki for the third out — and Craig Kimbrel allowed a two-out walk in the ninth before striking out Wilin Rosario for his 17th save in 20 opportunities.

Floyd was 0-6 in 11 starts since his last win for the Chicago White Sox at Cleveland on Oct. 3, 2012, his final start that season. He made five starts for the White Sox in 2013 before season-ending surgery to repair both a torn ulnar collateral ligament (Tommy John surgery) and a torn flexor tendon in his pitching elbow.