/dev/klog: Ensure correct results in computation.