Skip to content
Snippets Groups Projects
  1. Apr 08, 2020
  2. Feb 10, 2020
  3. Jan 25, 2020
  4. Aug 17, 2019
  5. Jul 23, 2019
    • Yorhel's avatar
      Handle malloc failure by pausing any activity · bb7b4196
      Yorhel authored
      This is a best-effort approach to save ncdu state when memory is low.
      There's likely allocation in libraries that isn't being checked
      (ncurses, printf).
      
      Fixes #132 (it actually doesn't, that needs a 64bit static binary too,
      but I'll get to that)
      bb7b4196
  6. Feb 18, 2019
  7. Feb 04, 2019
  8. Mar 29, 2018
  9. Jan 29, 2018
  10. Jan 23, 2018
    • Yorhel's avatar
      Add support for optional "extended" information for each file/dir entry · 77aca35f
      Yorhel authored
      Unfortunately, there wasn't a single bit free in struct dir.flags, so I
      had to increase its size to 16 bit. This commit is just the initial
      preparation, there's still a few things to do:
      
      - Add "extended information" cli flag to enable/disable this
        functionality.
      - Export and import extended information when requested
      - Do something with the data.
      
      I also did a few memory measurements on a file list with 12769842 items:
      
        before this commit:    1.239 GiB
        without extended info: 1.318 GiB
        with extended info:    1.698 GiB
      
      It's surprising what adding a single byte to a struct can do to the
      memory usage. :(
      77aca35f
  11. Jan 21, 2018
  12. Jul 08, 2017
    • Yorhel's avatar
      Add support for colors and sprinkle some colors around · a369a43d
      Yorhel authored
      TODO:
      - Add (ls-like) colors to the actual file names
        -> Implement full $LS_COLORS handling or something simple and custom?
      - Test on a white/black terminal, and provide an alternate color scheme
        if necessary.
      - Make colors opt-in?
      a369a43d
  13. Aug 24, 2016
  14. Sep 23, 2015
  15. Jan 22, 2014
  16. Sep 06, 2012
  17. Aug 29, 2012
  18. Aug 27, 2012
    • Yorhel's avatar
      Use int instead of long for struct dir->items · a61c784b
      Yorhel authored
      2 billion files should be enough for everyone. You probably won't have
      enough memory to scan such a filesystem. int is a better choice than
      long, as sizeof(int) is 4 on pretty much any system where ncdu runs.
      a61c784b
    • Yorhel's avatar
      Added -u option to change the scan UI · 44e63ce2
      Yorhel authored
      This allows scanning stuff without initializing ncurses. Not too useful
      at this point since ncdu will switch to an ncurses environment when it's
      done anyway, but this will become more useful when the export-to-file
      feature has been implemented.
      44e63ce2
  19. Aug 26, 2012
Loading