Preoperative hyperglycemia predicts infected total knee replacement.