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

Incorrect (?) uptime #41

Open
xrisk opened this issue Sep 23, 2021 · 2 comments
Open

Incorrect (?) uptime #41

xrisk opened this issue Sep 23, 2021 · 2 comments

Comments

@xrisk
Copy link

xrisk commented Sep 23, 2021

Nyx seems to be showing me the “real" uptime of my relay, that is the time since I started it. However, since I have a dynamic address, the effective uptime (the value I see on Onionoo and in Tor logs) is not equivalent to that value. Is there any way I can see that instead?

@atagar
Copy link
Collaborator

atagar commented Sep 23, 2021

Hi xrisk. Nyx gets the uptime from tor itself (tor's 'GETINFO uptime' command). What you're asking for is the duration you had an address rather than the process uptime. I'm unaware of a mechanism for Nyx to get that offhand, but if you'd care to make a patch I'd be happy to take a look.

@xrisk
Copy link
Author

xrisk commented Sep 26, 2021

I do notice lines like this in the Nyx logs:

 18:02:49 [NOTICE] Heartbeat: Tor's uptime is 22:24 hours, with 379 circuits open. I've sent 31.67 GB and received 31.67 GB. 

(Note, uptime as reported by Nyx is 7 days as this point)

I will try looking into the Tor source code to see how these are emitted. Do you have any introductory materials for hacking on Tor?

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