The lawyers may bill clients as much as $1,000 an hour. But U.S. Magistrate Judge Paul Grewal is counting pennies.

Grewal on Wednesday ordered Samsung Electronics Co. to pay $21,554.14 to Apple Inc. and Apple to pay $160,069.41 to Samsung as sanctions for separate discovery violations in their epic patent suit, Apple v. Samsung, 11-1846.