Skip to content
Snippets Groups Projects
  1. Nov 04, 2017
  2. Nov 03, 2017
  3. Nov 01, 2017
    • Damian Johnson's avatar
      Consolidate redraws if unable to draw for a while · 2c8c116d
      Damian Johnson authored
      When the menu's open for a while we block the graph panel from redrawing
      itself, causing events to accumilate. Then when the menu's closed we perform
      a flurry of updates which makes the graph appear to catch up in fast forward.
      
      Instead, if a panel is unable to draw itself after a second it gives up the
      redraw attempt. This way when the menu's closed we perform just a single redraw
      that catches us up.
      
      Caught thanks to Guinness on tor-relays@.
      2c8c116d
    • Damian Johnson's avatar
      Let nyx shut down faster · b29878e7
      Damian Johnson authored
      Especially when first starting up nyx takes a couple seconds to shut down on my
      relay. This is because the update method of our connection panel can take a
      while if there's many relays. Aborting in the middle of its longest part if the
      thread's terminated. This drops our shutdown time in practice to a few
      milliseconds.
      b29878e7
    • Damian Johnson's avatar
      Truncate average connction counts to ints · 811129d5
      Damian Johnson authored
      Oops, we displayed an unbounded decimal precision for the connection graph's
      average count. Who cares what the sixth decimal point of precision is? :P
      
      It's an average of a big whole number. As such just truncating to ints. Caught
      thanks to Toralf.
      811129d5
  4. Oct 31, 2017
  5. Oct 30, 2017
    • Damian Johnson's avatar
    • Damian Johnson's avatar
      Fix typo in sqlite3 import message · 052851bb
      Damian Johnson authored
      Caught thanks to Andrew.
      052851bb
    • Damian Johnson's avatar
      Stacktrace when transversing the menu on Gentoo · b4989bf4
      Damian Johnson authored
      Interesting catch from Toralf. I'm not entirely sure if this is it but if he
      was using python3 it makes sense that keys() provides an iterator whereas
      reversed() expects a collection. Not able to repro it though so not sure if
      this is what's at play...
      
        Traceback (most recent call last):
          File "./run_nyx", line 14, in <module>
            nyx.main()
          File "/root/nyx/nyx/__init__.py", line 147, in main
            nyx.starter.main()
          File "/root/nyx/stem/util/conf.py", line 289, in wrapped
            return func(*args, config = config, **kwargs)
          File "/root/nyx/nyx/starter.py", line 94, in main
            nyx.curses.start(nyx.draw_loop, acs_support = config.get('acs_support', True), transparent_background = True, cursor = False)
          File "/root/nyx/nyx/curses.py", line 216, in start
            curses.wrapper(_wrapper)
          File "/usr/lib64/python3.4/curses/__init__.py", line 94, in wrapper
            return func(stdscr, *args, **kwds)
          File "/root/nyx/nyx/curses.py", line 214, in _wrapper
            function()
          File "/root/nyx/nyx/__init__.py", line 192, in draw_loop
            nyx.menu.show_menu()
          File "/root/nyx/nyx/menu.py", line 203, in show_menu
            menu = _make_menu()
          File "/root/nyx/nyx/menu.py", line 243, in _make_menu
            submenu = panel.submenu()
          File "/root/nyx/nyx/panel/log.py", line 273, in submenu
            [RadioMenuItem(opt, filter_group, opt) for opt in self._filter.latest_selections()],
          File "/root/nyx/nyx/log.py", line 432, in latest_selections
            return list(reversed(self._past_filters.keys()))
        TypeError: argument to reversed() must be a sequence
      b4989bf4
    • Damian Johnson's avatar
      Refresh background when transversing menu · 698f0952
      Damian Johnson authored
      When displaying the menu we didn't redraw the background, causing old submenus
      to remain visible while moving around.
      698f0952
    • Damian Johnson's avatar
      Provide sqlite3 intructions for Gentoo · 8be7ef63
      Damian Johnson authored
      Message thanks to Toralf.
      8be7ef63
    • Damian Johnson's avatar
      Provide a nicer error when sqlite3 is unavailable · 4bfe05dc
      Damian Johnson authored
      Oops! Turns out this isn't available by default on FreeBSD or Gentoo. Providing
      a nicer notice, encouraging folks to contact us so we can provide per-platform
      suggestions for how to get it.
      4bfe05dc
    • Damian Johnson's avatar
      Suppress errors if os.putenv doesn't work · bcb01229
      Damian Johnson authored
      These are to sidestep issues on some platforms. Generally certainly fine if
      they don't take effect. Caught thanks to tor-relays@ beta tester on FreeBSD...
      
        nyx: environment corrupt; missing value for
        Traceback (most recent call last):
          File "./run_nyx", line 14, in <module>
            nyx.main()
          File "/usr/home/ryan/nyx/nyx/__init__.py", line 147, in main
            nyx.starter.main()
          File "/usr/home/ryan/nyx/stem/util/conf.py", line 289, in wrapped
            return func(*args, config = config, **kwargs)
          File "/usr/home/ryan/nyx/nyx/starter.py", line 90, in main
            os.putenv('LANG', 'C')  # make subcommands (ps, netstat, etc) provide
        english results
        OSError: [Errno 14] Bad address
      bcb01229
    • Damian Johnson's avatar
      Make tests python 3.x compatible · c551866e
      Damian Johnson authored
      c551866e
    • Damian Johnson's avatar
      Nyx cpu usage metric incorrect · 46d782d0
      Damian Johnson authored
      Hey, it's only a couple orders of magnitude.
      
      ... *sigh*.
      46d782d0
    • Damian Johnson's avatar
      Fix tor cpu usage metric · 436016d1
      Damian Johnson authored
      Why did we divide by that? Weird. Because of it we always showed tor's cpu
      usage as 0%.
      436016d1
    • Damian Johnson's avatar
      Better logging when tracker has an unexpected exception · 494a39ed
      Damian Johnson authored
      We shouldn't silently swallow errors. Opting for notice runlevel so they're
      visible to users by default so they can be reported.
      494a39ed
    • Damian Johnson's avatar
      Connection details usually not visible · f6cbc8d6
      Damian Johnson authored
      The 'width' attribute already takes into account the initial 'x' offset, but in
      the conditional we didn't account for that causing connection details to just
      about never be shown.
      f6cbc8d6
    • Damian Johnson's avatar
      Alias ERR for ERROR and WARN for WARNING · e0a813df
      Damian Johnson authored
      Fixing a couple easy to make gotchas in our --log argument. It's especially
      confusing becuase nyx expected 'NYX_WARNING' whereas it displayed 'NYX_WARN'.
      e0a813df
  6. Oct 29, 2017
  7. Oct 26, 2017
  8. Oct 25, 2017
  9. Oct 24, 2017
    • Damian Johnson's avatar
      Fix unit tests · c6c16ebc
      Damian Johnson authored
      Lots of breakages have slipped in while attempting to improve our performance.
      Most were timing related due to our switch to static sleeps.
      c6c16ebc
  10. Oct 23, 2017
Loading