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

Inaccurate Received Bytes #41

Open
ossie-git opened this issue Sep 29, 2024 · 0 comments
Open

Inaccurate Received Bytes #41

ossie-git opened this issue Sep 29, 2024 · 0 comments

Comments

@ossie-git
Copy link

Hi,

To test out picosnitch, I installed it and ran the following in a terminal:

wget https://ash-speed.hetzner.com/100MB.bin

After the download completes, the TUI shows a lot less than 100MB. Running the following SQL on snitch.db gave the following:

> SELECT SUM(recv) FROM connections WHERE name = "wget";
 ----------- 
| SUM(recv) |
 ----------- 
| 1234048   |
 ----------- 
1 row in set
Time: 0.007s

So it claims that only 1234048 bytes were downloaded while 100MB were actually downloaded.

I re-ran the test after stopping the service, deleting the files in ~/.config/picosnitch, starting the service and then re-running the command. This time, it gave me the following:

> SELECT SUM(recv) FROM connections WHERE name = "wget";
 ----------- 
| SUM(recv) |
 ----------- 
| 1210048   |
 ----------- 
1 row in set
Time: 0.004s

So again, it doesn't give the real value. Is there a reason for this? I tested this on Rocky 9 (and testing it on Fedora 40 gave similar results). This is using the latest version (installing it using pip for Rocky 9 and using the package manager for Fedora). Also, this is the same behavior for other applications as well, not just wget. 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

1 participant