People with diabetes have a 40 percent greater risk of developing atrial fibrillation, the most common type of chronically irregular heartbeat, according to a new study. Researchers found this risk rises even higher the longer people have diabetes and the less controlled their blood sugar is.