Unless you ate the whole cake, you didnt eat a whole 2 cups of sugar. Breakfast cereals are full of sugar. It's probably the same amount, so totally fine.

Did you eat the whole cake?