At the end of surgery and one hour after surgery , glucose levels were significantly higher in patients undergoing general anesthesia compared with baseline values in both diabetic and nondiabetic patients ( P < 0.05 ) .