Revision 50468190 src/eventlog/sequencechartfacade.cc

View differences:

src/eventlog/sequencechartfacade.cc
783 783
}
784 784

  
785 785

  
786
IEvent* SequenceChartFacade::getPreviousBottleneck(IEvent* e, unsigned int threshold) {
786
IEvent* SequenceChartFacade::getPreviousBottleneck(IEvent* e, double threshold) {
787 787
    IEvent* next = e->getPreviousEvent();
788 788
    while (next) {
789 789
        if (isBottleneck(next,threshold)) {
......
794 794
    return e;
795 795
}
796 796

  
797
IEvent* SequenceChartFacade::getNextBottleneck(IEvent* e, unsigned int threshold) {
797
IEvent* SequenceChartFacade::getNextBottleneck(IEvent* e, double threshold) {
798 798
    IEvent* next = e->getNextEvent();
799 799
    while (next) {
800 800
        if (isBottleneck(next,threshold)) {
......
808 808
/*
809 809
 * Returns whether an event not part of a set of parallel events with more than treshold elements.
810 810
 */
811
bool SequenceChartFacade::isBottleneck(IEvent* event, unsigned int threshold)
811
bool SequenceChartFacade::isBottleneck(IEvent* event, double threshold)
812 812
{
813
    return getLargestParallelSetSize(event) <= threshold;
813
    if (isOnCriticalPath(event)) {
814
        return getOverlappingQuotient((ptr_t)event) <= threshold;
815
    }
816
    return false;
814 817
}
815 818
/*
816 819
 * Returns whether event is in the largest parallel set of selected.

Also available in: Unified diff