Hungry or bored?

How do you determine if you are actually hungry, or just wanting to eat out if boredom?