Yorhel
33cd126197
Draw browser on background while calculating
2009-04-18 15:35:37 +02:00
Yorhel
e079026ac8
Kept internal variables internal in browser.c and added browse_init()
...
Looks much better this way!
2009-04-18 15:23:33 +02:00
Yorhel
3ad39f3741
Don't touch the original tree while recalculating
...
This change makes it possible to still show the browser with correct
(previous) data while calculating.
2009-04-18 15:07:23 +02:00
Yorhel
4a751f0564
Removed stcalc and used several global variables instead
...
Considering it's now all internal in calc.c, anyway.
2009-04-18 14:36:24 +02:00
Yorhel
372f69853c
Initialize calc_delay and calc_smfs in calc.c rather than main.c
2009-04-18 14:16:48 +02:00
Yorhel
b24c3dee40
Got rid of SF_SI
...
It was a totally useless feature, anyway.
2009-04-18 14:05:45 +02:00
Yorhel
2b209ba9b2
Moved SF_SMFS in ncdu.h to char calc_smfs in calc.h
...
Another code cleanup, many more to come...
2009-04-18 14:04:53 +02:00
Yorhel
2a25bfdc7a
Moved and renamed sdelay in ncdu.h to calc_delay in calc.h
...
Because that's where it's supposed to be.
(geez, the current code is still a mess)
2009-04-18 13:51:45 +02:00
Yorhel
05756ad567
Remove some calc.c specific defines from ncdu.h
...
And updated TODO a bit
2009-04-18 13:45:32 +02:00
Yorhel
6d5ae5eb76
Fixed minor size + item count inconsistency on recalculating a dir
...
Namely, the 'parent' dir item itself that is recalculated isn't
reconsidered in its parents.
2009-04-16 19:05:11 +02:00
Yorhel
d297af2ce8
Fixed major bug with counting all sizes twice
...
I have absolutely no idea when I introduced this bug, will check
the history later.
2009-04-16 19:00:13 +02:00
Yorhel
34ba5348c8
Made stcalc static within calc.c and abstracted access to it with calc_init()
...
This actually makes the struct itself obsolete, as all information is now only
useful within calc.c itself and other files don't have to do anything with it.
2009-04-16 18:26:39 +02:00
Yorhel
5790b817f9
Re-added recalculating (sub)directories
2009-04-13 19:32:40 +02:00
Yorhel
b8877be907
Fixed display bug while calculating
2009-04-13 18:38:07 +02:00
Yorhel
7a0730f5d2
(Partly) rewrote browser.c to the new system
...
Not fully finished yet with this one, though.
2009-04-13 17:25:46 +02:00
Yorhel
690eb3f593
Header file cleanup
...
Moved everything that doesn't belong in ncdu.h into the other header
or c files. Looks much better this way.
2009-04-11 13:49:08 +02:00
Yorhel
fa90c77c96
Rewrote util.h to the new style
2009-04-11 11:38:36 +02:00
Yorhel
6c0a56a26f
Rewrote exclude.c to the new style
2009-04-11 10:53:13 +02:00
Yorhel
cc8cc99213
Moved definitions for calc.c to separate header file
...
Though it's not really useful yet now ncdu.h still includes it
2009-04-11 10:04:24 +02:00
Yorhel
c4be23a4c5
Each state can have it's own global variable
2009-04-11 09:58:33 +02:00
Yorhel
f392bf3ee1
Rewrote calc.c in the new style & framework
...
ncdu is currently pretty much in a non-working state, but things will
get fixed eventually after porting the other source files to the new
framework.
2009-04-10 18:16:33 +02:00
yorhel
e7fb90fc67
Year bump
...
git-svn-id: svn://blicky.net/ncdu/trunk@48 ce56bc8d-f834-0410-b703-f827bd498a76
2009-01-11 09:34:19 +00:00
yorhel
20296b2567
Fixed rpath() bug on /.
...
git-svn-id: svn://blicky.net/ncdu/trunk@47 ce56bc8d-f834-0410-b703-f827bd498a76
2009-01-11 09:30:53 +00:00
yorhel
c306d3fe3b
Updated copyright year to cover 2008 as well
...
git-svn-id: svn://blicky.net/ncdu/trunk@36 ce56bc8d-f834-0410-b703-f827bd498a76
2008-08-02 13:59:58 +00:00
yorhel
cd2ade76c6
Included patch from Cygwin package: Fix crash on names with slashes from /proc/registry
...
git-svn-id: svn://blicky.net/ncdu/trunk@33 ce56bc8d-f834-0410-b703-f827bd498a76
2008-08-02 11:14:48 +00:00
yorhel
6621d70d99
Removed export and import code from trunk and created separate development branch.
...
git-svn-id: svn://blicky.net/ncdu/trunk@32 ce56bc8d-f834-0410-b703-f827bd498a76
2008-08-02 09:37:49 +00:00
yorhel
abeb59fe30
Bugfix for systems that don't have an S_BLKSIZE of 512
...
git-svn-id: svn://blicky.net/ncdu/trunk@29 ce56bc8d-f834-0410-b703-f827bd498a76
2007-11-02 11:44:18 +00:00
yorhel
8a71f8860c
Fixed buffer overflow when supplying a path longer than PATH_MAX (patch by Tobias Stoeckmann)
...
git-svn-id: svn://blicky.net/ncdu/trunk@28 ce56bc8d-f834-0410-b703-f827bd498a76
2007-11-01 19:40:30 +00:00
yorhel
db920f8dab
* Added error handling for the import feature
...
* Created own window-functions and removed ncurses window usage
* Rewrote fullsize
git-svn-id: svn://blicky.net/ncdu/trunk@27 ce56bc8d-f834-0410-b703-f827bd498a76
2007-08-16 08:36:58 +00:00
yorhel
96d0ffffa2
The "reference to parent directory" hack is now only used in drawBrowser in browser.c, and is not included in the main dir structure anymore. (less code, easier, faster, less memory usage)
...
git-svn-id: svn://blicky.net/ncdu/trunk@26 ce56bc8d-f834-0410-b703-f827bd498a76
2007-08-12 09:52:24 +00:00
yorhel
55405140f7
* (BETA) Implemented file list exporting and importing
...
* Added file format specification (README.fileformat)
* Moved settingsCli in settings.c to parseCli in main.c
* Bugfix: drawError in calc.c was not shown when an error occurred while reading the main dir
git-svn-id: svn://blicky.net/ncdu/trunk@25 ce56bc8d-f834-0410-b703-f827bd498a76
2007-08-11 20:01:16 +00:00
yorhel
fa0aa6b53b
* Calculate both apparent size and disk usage
...
* Removed apparent sizes option
* Combined "files" and "dirs" to "items" in the dir structure
* Updated TODO
git-svn-id: svn://blicky.net/ncdu/trunk@18 ce56bc8d-f834-0410-b703-f827bd498a76
2007-08-01 13:17:26 +00:00
yorhel
b2b43689f0
Preperations for the export feature: re-ordered the file flags and removed FF_OTHER (which is the same as \!(FF_DIR | FF_FILE))
...
git-svn-id: svn://blicky.net/ncdu/trunk@16 ce56bc8d-f834-0410-b703-f827bd498a76
2007-07-29 14:06:05 +00:00
yorhel
c96bf1636a
Changed struct dir from a doubly to a singly linked list (less memory usage, faster, and easier)
...
git-svn-id: svn://blicky.net/ncdu/trunk@13 ce56bc8d-f834-0410-b703-f827bd498a76
2007-07-26 16:37:33 +00:00
yorhel
362554d2ac
Added 'r' key to refresh the current directory
...
git-svn-id: svn://blicky.net/ncdu/trunk@11 ce56bc8d-f834-0410-b703-f827bd498a76
2007-07-26 12:56:24 +00:00
yorhel
ce6785124c
Rewrote calc.c to be more flexible and clarifying, and changed the global 'dir' to a pointer
...
git-svn-id: svn://blicky.net/ncdu/trunk@10 ce56bc8d-f834-0410-b703-f827bd498a76
2007-07-25 18:38:49 +00:00
yorhel
87a7925b99
* Rewrote the file browser, help window, and delete windows
...
* Split browser.c into delete.c and help.c
* Added "reference to parent directory"-hack
* File browser doesn't use the ncurses menu lib anymore
* Fixed bug #1758403 : large directories work fine now
* Fixed bug with wide characters in the browser
* Performance improvements when browsing large directories
* Required (instead of recommended) gettimeofday()
git-svn-id: svn://blicky.net/ncdu/trunk@6 ce56bc8d-f834-0410-b703-f827bd498a76
2007-07-24 07:58:22 +00:00
yorhel
3fddf6f09b
Added exclude option and increased version numer
...
git-svn-id: svn://blicky.net/ncdu/trunk@3 ce56bc8d-f834-0410-b703-f827bd498a76
2007-07-21 13:55:51 +00:00
yorhel
4de245f29b
Small bugfixes + cygwin patch
...
git-svn-id: svn://blicky.net/ncdu/trunk@2 ce56bc8d-f834-0410-b703-f827bd498a76
2007-07-20 11:29:50 +00:00
yorhel
6e3bbe69ee
Initial import (ncdu-1.1)
...
git-svn-id: svn://blicky.net/ncdu/trunk@1 ce56bc8d-f834-0410-b703-f827bd498a76
2007-07-20 11:15:46 +00:00