hist: cleanup
perfdata: update todo
perfpd: force flags to bool
perfpd: fix branch
perfpd: tester: test period case