OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000740OMNeT++examplespublic2014-03-07 17:342014-03-07 17:34
Reporterfrancogpellegrini 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version4.4 
Target VersionFixed in Version 
Summary0000740: PassiveQueue statistics bug?
DescriptionPassiveQueue+Servers does not give correct results in queueingTime:mean. Queue does.
Additional InformationSolution:

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
Tagsbug, lib, solution, solved
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2014-03-07 17:34 francogpellegrini New Issue
2014-03-07 17:35 francogpellegrini Tag Attached: bug
2014-03-07 17:35 francogpellegrini Tag Attached: lib
2014-03-07 17:35 francogpellegrini Tag Attached: solution
2014-03-07 17:35 francogpellegrini Tag Attached: solved


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker