memguard: b/w calculation bug fix

When period is not 1ms, the b/w calculation was not correct.
Merge remote-tracking branch 'github/devel' into devel