U.S. astronaut Sunita Williams has now spent more time spacewalking than any other woman, setting the record on Sunday as she and a crew mate upgraded the international space station's cooling system.

Williams broke the previous women's spacewalking record of more than 21 hours when she and Michael Lopez-Alegria completed the second of what could be a precedent-setting three spacewalks in nine days.

The new record of 22 hours and 27 minutes includes her two most recent walks, as well as a spacewalk in December.

• Click here to visit FOXNews.com's Space Center.

During the spacewalk, which lasted more than seven hours, small amounts of toxic ammonia leaked from a fluid line. The liquid ammonia, which freezes into flakes when it hits the vacuum of space, did not appear to touch either astronaut.

Mission Control told them to continue their task of hooking up ammonia fluid lines from a temporary cooling system to a permanent one.

Once they were back in the space station's airlock, Mission Control made the astronauts test for contamination. The test was negative.

A tiny bit of ammonia also leaked during Lopez-Alegria's and Williams' first spacewalk Wednesday.

Mission Control ordered them to take precautions since ammonia could cause respiratory problems for the three-person crew if enough of it got into the space station.

"They look like pinpoints," Lopez-Alegria said of the flakes Sunday. "They don't look like what we saw the other day, but they are coming out with some velocity."

Lopez-Alegria and Williams hooked up the permanent cooling system, covered an obsolete radiator that was retracted by remote control from the ground and stowed a fluid line that was connected to an ammonia reservoir.

They then moved on to other jobs ahead of schedule: removing a sun shade, photographing a solar array that will be retracted during space shuttle Atlantis' mission next month and making electrical connections for a new system that will allow power from the station to be shared with a docked shuttle.

Lopez-Alegria originally was supposed to jettison the sun shade, but NASA engineers instead had him fold it up and stow it away inside the space station.

The third spacewalk is set for Thursday, marking the first time three spacewalks will have been conducted in such a short period at the space station without a shuttle docked to it.

Lopez-Alegria planned to conduct a fourth spacewalk with Russian flight engineer Mikhail Tyurin on Feb. 22.

After Sunday's spacewalk, Lopez-Alegria moved up to third on the list of the most time spacewalking.

He is expected to surpass Jerry Ross' U.S. record of more than 58 hours over nine spacewalks by the end of the month. Russian cosmonaut Anatoly Solovyov has more than 77½ hours over 16 spacewalks.