sysutils/ganglia-monitor-core doesn't correctly detect high (>2GHz) cpu speed

Rolandas Naujikas Rolandas.Naujikas at mif.vu.lt
Thu May 19 09:12:02 GMT 2005


The original code in ganglia also has problems, because it use signed
int for cpu_speed variable to determinate cpu freq value. In your patch
it use signed long value. When cpu freq is over some value (mine has
3GHz), then overflow exists. The variables should be unsigned, to
correctly determine cpu freq. (In kernel really it is unsinged int for 4.x)

Rolandas


More information about the freebsd-ports mailing list