Skip to content
Snippets Groups Projects
  1. Apr 08, 2020
  2. Feb 10, 2020
  3. 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
  4. Feb 04, 2019
  5. Mar 29, 2018
  6. Jan 29, 2018
  7. Jan 23, 2018
    • Yorhel's avatar
      Import/export extended information · 40b12759
      Yorhel authored
      And stick to the more portable second resolution timestamps for mtime.
      40b12759
    • 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
  8. Jan 21, 2018
  9. Aug 17, 2017
    • Yorhel's avatar
      Use C99 flexible array member for struct dir · a830f7df
      Yorhel authored
      This should fix https://dev.yorhel.nl/ncdu/bug/99 - with the downside
      that this requires a C99 compiler.
      
      I also replaced all occurrences of static allocation of struct dir with
      use dynamic allocation, because I wasn't really sure if static
      allocation of flexible structs is allowed. In the case of dirlist.c the
      dynamic allocation is likely required anyway, because it does store a
      few bytes in the name field.
      a830f7df
  10. Mar 27, 2017
  11. Aug 24, 2016
  12. Jan 22, 2014
    • Yorhel's avatar
      Copyright year update · efece12c
      Yorhel authored
      efece12c
    • Yorhel's avatar
      Add support for browsing empty directories · fe932c7b
      Yorhel authored
      Turns out that being able to open an empty directory actually has its
      uses:
      - If you delete the last file in a directory, you now won't be directed
        to the parent directory anymore. This allows keeping 'd' pressed
        without worrying that you'll delete stuff outside of the current dir.
        (This is the primary motivation for doing this)
      - You can now scan and later refresh an empty directory, as suggested by
        #2 in http://dev.yorhel.nl/ncdu/bug/15
      fe932c7b
  13. Apr 12, 2013
  14. Sep 06, 2012
  15. Sep 05, 2012
Loading