Joe Pavelski certainly has scored more dazzling goals in his career, and the Sharks certainly have played cleaner games this season.

But Pavelski and his teammates fought through an otherwise uneven performance Monday, and some rougher-than-usual ice conditions, to earn a 3-2 victory over the Calgary Flames and extend their win streak to four games.

Pavelski -- coming off his first career hat trick Saturday at Tampa Bay -- scored twice against Calgary, including the eventual winner in the second period, to help move the Sharks six points ahead of the Los Angeles Kings for second place in the Pacific Division.

The Sharks allowed two goals in the first period and were outshot 11-6 in the third period but did just enough defensively to begin their four-game homestand on a positive note.

"The win is important. When we start the night, that's what our goal is," Sharks coach Todd McLellan said. "When you look back and evaluate the game, that's where it gets a little disappointing. We weren't very good, obviously. I didn't think we skated well, we weren't moving our feet. ... It was a night where we probably got away with one."

Pavelski redirected a Justin Braun shot from the point in the first period for his first goal, then tipped in a shot from Joe Thornton in the second period for his 18th goal in the last 20 games.

Pavelski has 27 goals this season, tied for second in the NHL with Anaheim's Corey Perry, and is eight goals back of Washington's Alex Ovechkin.

"There are nights when you don't feel your best, and you (still) find a way to get one or two," Pavelski said. "But this feels like how you should play the game all the time."

After the game, McLellan and several Sharks players commented on the soft ice conditions, which clearly caused stickhandling, passing and shooting problems for both teams. On Pavelski's second goal, Thornton said with the ice conditions, he was just trying to get the puck in the general direction of the net.

"He just made a great play with hand-eye coordination," Thornton said of Pavelski's goal. "He's just playing great right now."

One of the biggest positives the Sharks could take away from Monday was their discipline, as they had a penalty-free game for the ninth time in franchise history.