Package: swapd
Version: 0.2-10
Severity: important

line:
unsigned long kswaps = 0;

in swapd.c
should be:
long kswaps = 0;

or other changes made.

currently swapd is not working at all if there is no other swap in the system.

it is because of these lines:
      kswaps = usedswaps();                                                     
                        
      if (mem < memlimit && (!maxswaps || kswaps < maxswaps)) {

usedswaps returns -1 (there is no other swap at start) which is converted to
huge unsigned value and compared to small one.

Artur Górniak


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686-smp
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages swapd depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to