Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Tor Tor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 316
    • Issues 316
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 36
    • Merge requests 36
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • TorTor
  • Issues
  • #25081
Closed
Open
Created Jan 30, 2018 by Roger Dingledine@armaReporter

use get_uptime() consistently

We have this nice function get_uptime() that shields the global variable stats_n_seconds_working from the rest of the Tor files.

But then we undermine that by saying

extern long stats_n_seconds_working;

in main.h and we just start using that variable directly all over.

There are a few lonely users of get_uptime().

We should move everybody over to using get_uptime, and get rid of the scary extern.

(Also check out how we're writing to the extern variable, in hibernate.c. There's no way that could confuse anybody down the road!)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking