Atlantic City's eight casinos saw their revenue decrease by 4.9 percent in August, compared with a year ago.

And things would have been much worse without a healthy boost from internet gambling.

Figures released Wednesday by the state Division of Gaming Enforcement show the casinos won $245.8 million in August, down 4.9 percent from $258.5 million in August 2015.

Internet gambling remained the bright spot for the New Jersey gambling market, with revenue up 31.6 percent in August to more than $16 million compared with a year ago.

Only two casinos — the Golden Nugget and Tropicana — posted monthly revenue gains in August. The biggest decline came at the Trump Taj Mahal, where unionized workers are on strike.

The Taj announced last month it will close in October.