Take a good calcium supplement.
I do take calicum and potasium, I'm going to add magnesium to the mix. The leg cramps are due to muscle fatigue, I have Fibromyalgia and because I now have to work standing on my feet 8 hours a day on concrete my legs are beginning to cramp and ache badly not only during the day but at night too.