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

Split stats #376

Merged
merged 8 commits into from Sep 27, 2018
Merged

Split stats #376

merged 8 commits into from Sep 27, 2018

Conversation

Labels
None yet
Projects
None yet
4 participants
@nmathewson
Copy link
Contributor

@nmathewson nmathewson commented Sep 27, 2018

No description provided.

nmathewson added 6 commits Sep 27, 2018
It differs from the rest of the rephist code in that it's actually
necessary for Tor to operate, so it should probably go somewhere
else.  I'm not sure where yet, so I'll leave it in the same
directory, but give it its own file.
This is preparation for splitting geoip.c into stats and non-stats
portions.
This commit just moves the code to two separate files. The geoip
code still has a few needless dependencies on core/* and features/*.
@coveralls
Copy link

@coveralls coveralls commented Sep 27, 2018

Coverage Status

Coverage decreased (-0.1%) to 61.813% when pulling 3164530 on nmathewson:split_stats into de0b07c on torproject:master.

geoip_country_t *country = smartlist_get(geoip_countries, country_idx);
++country->n_v3_ns_requests;
}
increment_v3_ns_request(country_idx);
Copy link
Contributor

@dgoulet-tor dgoulet-tor Sep 27, 2018

So hmmm country_idx is a integer but this function expects a country_t which is a typedef to uint16_t. I do see a overflow issue but of course if 65535 countries would exists so unlikely but still, I think we should fix that.

@torproject-pusher torproject-pusher merged commit 3164530 into torproject:master Sep 27, 2018
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment