src/daemon/common.c: Fix handling of counter_t in value_to_rate().