OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001040OMNeT++examplespublic2018-05-30 12:292018-05-30 12:29
Reportervallejo 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
Platformx86OSWindowsOS VersionVista
Product Version5.3 
Target VersionFixed in Version 
Summary0001040: Queue and PassiveQueue modules of "queueinglib" wrong statistics collection
DescriptionQueue and PassiveQueue modules incorrectly collect statistics for 0 messages situation.

In Queue::handleMessage, the empty queue situation is handled with the following code:

....
if (queue.isEmpty()) {
    jobServiced = nullptr;
    emit(busySignal, false);
}
....

With this code, the statistics for 0 messages situation are not correctly collected, affecting also the histogram.

A possible solution is to emit the proper signal:

....
if (queue.isEmpty()) {
    jobServiced = nullptr;
    emit(busySignal, false);
    emit(queueLengthSignal, 0); /* Proposed solution */
}
....

The same problem occurs in PassiveQueue:

....
else if (length() == 0) {
    // send through without queueing
    sendJob(job, k);
}
....

could be changed to:

....
else if (length() == 0) {
    // send through without queueing
    emit(queueLengthSignal, 0); /* Proposed solution */
    sendJob(job, k);
}
....
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2018-05-30 12:29 vallejo New Issue


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker