[powerdebug V2: 03/14] use an int instead of a double