Implemented a max interval option in the module interface

This is the max interval between updates in seconds, note that this
is entirely optional. I purely did this to avoid things like -nan in
the cpu module when updating every microsecond (yeah I just realized
a bug).

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>