Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 May 2005 12:11:54 +0300
From:      Rolandas Naujikas <Rolandas.Naujikas@mif.vu.lt>
To:        brooks@FreeBSD.org, ports@FreeBSD.org
Subject:   sysutils/ganglia-monitor-core doesn't correctly detect high (>2GHz) cpu speed
Message-ID:  <428C585A.4080105@mif.vu.lt>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?428C585A.4080105>