Merge branch 'charm' of charmgit:charm into charm
authorYanhua Sun <suny@jaguarpf-login1.ccs.ornl.gov>
Fri, 31 Aug 2012 20:04:32 +0000 (16:04 -0400)
committerYanhua Sun <suny@jaguarpf-login1.ccs.ornl.gov>
Fri, 31 Aug 2012 20:04:32 +0000 (16:04 -0400)
src/ck-core/envelope.h

index ecd5e569b7f81339d02ebb5136fa16d5c140433a..c1138ea3a47d2aeb8456ea508037ab38d95e1089 100644 (file)
@@ -228,7 +228,7 @@ private:
     void   setMsgIdx(const UChar idx) { attribs.msgIdx = idx; }
     UInt   getTotalsize(void) const { return totalsize; }
     void   setTotalsize(const UInt s) { totalsize = s; }
-    UInt   getUsersize(void) const { return totalsize - priobits - sizeof(envelope); }
+    UInt   getUsersize(void) const { return totalsize - getPrioBytes() - sizeof(envelope); }
     UChar  isPacked(void) const { return attribs.isPacked; }
     void   setPacked(const UChar p) { attribs.isPacked = p; }
     UShort getPriobits(void) const { return priobits; }