diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-22 17:44:47 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-22 17:44:47 +0000 |
commit | 75e9a2dc69bad2fe10cc60d801019731069005cf (patch) | |
tree | 605c12a4609dc68703fd6adf324aa1cc6e4b45d4 /queue.c | |
parent | 44ac484dd18867163735c54d052e57d52142edaa (diff) | |
download | rsyslog-75e9a2dc69bad2fe10cc60d801019731069005cf.tar.gz rsyslog-75e9a2dc69bad2fe10cc60d801019731069005cf.tar.xz rsyslog-75e9a2dc69bad2fe10cc60d801019731069005cf.zip |
simplified var object, now only supports strings and numbers as a single
type
Diffstat (limited to 'queue.c')
-rw-r--r-- | queue.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -2066,15 +2066,15 @@ static rsRetVal queueSetProperty(queue_t *pThis, var_t *pProp) ASSERT(pProp != NULL); if(isProp("iQueueSize")) { - pThis->iQueueSize = pProp->val.vInt; + pThis->iQueueSize = pProp->val.num; } else if(isProp("iUngottenObjs")) { - pThis->iUngottenObjs = pProp->val.vInt; + pThis->iUngottenObjs = pProp->val.num; } else if(isProp("tVars.disk.sizeOnDisk")) { - pThis->tVars.disk.sizeOnDisk = pProp->val.vLong; + pThis->tVars.disk.sizeOnDisk = pProp->val.num; } else if(isProp("tVars.disk.bytesRead")) { - pThis->tVars.disk.bytesRead = pProp->val.vLong; + pThis->tVars.disk.bytesRead = pProp->val.num; } else if(isProp("qType")) { - if(pThis->qType != pProp->val.vLong) + if(pThis->qType != pProp->val.num) ABORT_FINALIZE(RS_RET_QTYPE_MISMATCH); } |