The X-ray flux variations of Cygnus X-2