Prego weight gain

Deb
I am almost 26 weeks and have only gained 18lbs.. My OB told me I can't eat any sweets, nothing to drink with calories and I need to exercise 60mins a day.. It has nothing to do with any health issue, it's strictly because she is concerned about how much weight I've gained.. Even though I only gained 6 lbs in the second trimester.. Is this total bs?? How much has everyone else gained?