Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logics here in the code seems wired? #33

Open
ziyuezzy opened this issue Nov 29, 2022 · 1 comment
Open

Logics here in the code seems wired? #33

ziyuezzy opened this issue Nov 29, 2022 · 1 comment

Comments

@ziyuezzy
Copy link

Hi,
I am using (modifying) booksim2 for my own research.
The logic here in this code block seems to be a bit wired?
In file 'trafficmanager.cpp', line 777:

    } else { //normal mode
        result = _injection_process[cl]->test(source) ? 1 : 0;
        _requestsOutstanding[source]++;    ========================> this line!
    } 
    if(result != 0) {

When "_use_read_write!=0" , "_requestsOutstanding" is increased every injection test, this seems wired. I reckon the developer means this:

    } else { //normal mode
        result = _injection_process[cl]->test(source) ? 1 : 0;
        if(result)
             _requestsOutstanding[source]++;    
    } 
    if(result != 0) {

?

@hanskasan
Copy link

Hi,
I am not the developer but have been using BookSim for a while.
I think you are correct - it should not be incremented when no packets are issued.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants