http://bugs.gentoo.org/show_bug.cgi?id=118890#c4 --- module/sysprof-module.c +++ module/sysprof-module.c @@ -50,7 +50,11 @@ MODULE_AUTHOR("Soeren Sandmann (sandmann@daimi.au.dk)"); #define SAMPLES_PER_SECOND (200) -#define INTERVAL (HZ / SAMPLES_PER_SECOND) +#if (HZ > SAMPLES_PER_SECOND) +# define INTERVAL (HZ / SAMPLES_PER_SECOND) +#else +# define INTERVAL 1 +#endif #define N_TRACES 256 static SysprofStackTrace stack_traces[N_TRACES];