From bf96cf5c8e6a9a8ee7ca955e93484856215e8ac6 Mon Sep 17 00:00:00 2001 From: bchristiansen Date: Fri, 13 Feb 2009 18:53:54 +0000 Subject: [PATCH] FIX: Fix changing Configured Swap Problem Ref: 2956 Organization: CSIRO Contact: Gareth Williams git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@109 3f5042e3-fb1d-0410-be18-d6ca2573e517 --- src/moab/MPBSI.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/moab/MPBSI.c b/src/moab/MPBSI.c index ecb2fcf..823ed14 100644 --- a/src/moab/MPBSI.c +++ b/src/moab/MPBSI.c @@ -2885,8 +2885,8 @@ int MPBSQueryMOM( /* NOTE: PBS totmem = swap + RAM */ - if ((TotMem > 0) && (N->CRes.Mem > 0)) - N->CRes.Swap = TotMem - N->CRes.Mem; + if (TotMem > 0) + N->CRes.Swap = TotMem; closerm(sd); @@ -6278,8 +6278,8 @@ int __MPBSIGetSSSStatus( /* NOTE: PBS totmem = swap + RAM */ - if ((TotMem > 0) && (N->CRes.Mem > 0)) - N->CRes.Swap = TotMem - N->CRes.Mem; + if (TotMem > 0) + N->CRes.Swap = TotMem; return(SUCCESS); } /* END __MPBSIGetSSSStatus() */