It is hours worked, not productivity. If a shopkeeper takes a three hour lunch and sits in the sun in front of his shop half the time but stays open from 08:00-20:00 according to the stats he’s working 12h days.
Which is correct, in any case. If he isn't doing anything else but "tending the business" even when there's no business because there are no clients, then he is "working".