I used to get terrible leg cramps in bed BEFORE I was diagnosed with Type 2, they pretty much stopped when I got put on Metformin.
I've had them a couple of times since, but that's literally 2 times in 3 years as opposed to 2 or 3 times a week!
I put it down to high BG that caused them to be...