OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000740OMNeT++examplespublic2014-03-07 17:342014-03-07 17:34
francogpellegrini 
 
normalmajoralways
newopen 
4.4 
 
0000740: PassiveQueue statistics bug?
PassiveQueue+Servers does not give correct results in queueingTime:mean. Queue does.
Solution:

in PassiveQueue::handleMessage
.
.
.
        job->setQueueCount(job->getQueueCount() + 1);
    } else if (length() == 0) {
        // send through without queueing
        send(job, "out", k);
    } else
.
.
.


Add the lines:
.
.
.
         job->setQueueCount(job->getQueueCount() + 1);
    } else if (length() == 0) {
        // send through without queueing

        emit(queueLengthSignal, length());

        job->setQueueCount(job->getQueueCount() + 1);
        simtime_t d = simTime() - job->getTimestamp();
        emit(queueingTimeSignal, d);
        job->setTotalQueueingTime(job->getTotalQueueingTime() + d);

        send(job, "out", k);
    } else
        error(
.
.
.

and problem solved
bug, lib, solution, solved
Issue History
2014-03-07 17:34francogpellegriniNew Issue
2014-03-07 17:35francogpellegriniTag Attached: bug
2014-03-07 17:35francogpellegriniTag Attached: lib
2014-03-07 17:35francogpellegriniTag Attached: solution
2014-03-07 17:35francogpellegriniTag Attached: solved

There are no notes attached to this issue.