Bug#511095: [Buildd-tools-devel] Bug#511095: unportable use of sysinfo()

2009-01-11 Thread Roger Leigh
tags 511095 + pending thanks On Wed, Jan 07, 2009 at 12:44:05PM +, Robert Millan wrote: > buildd-mail-wrapper.c relies on unportable sysinfo() call that is only > available on Linux. I investigated what would be necessary for this > program to use getloadavg() instead: > > waittime = (in

Bug#511095: unportable use of sysinfo()

2009-01-07 Thread Robert Millan
Package: sbuild Severity: normal Hi, buildd-mail-wrapper.c relies on unportable sysinfo() call that is only available on Linux. I investigated what would be necessary for this program to use getloadavg() instead: waittime = (info.loads[0] >> (SI_LOAD_SHIFT-2))*6 + 20; what we have here is