adu.git
15 years agoImplement human-readable output and honor the unit command line options.
Andre Noll [Mon, 26 May 2008 16:06:45 +0000 (18:06 +0200)]
Implement human-readable output and honor the unit command line options.

15 years agoHonor the --limit option.
Andre Noll [Mon, 26 May 2008 11:55:32 +0000 (13:55 +0200)]
Honor the --limit option.

15 years agoHonor the --database_dir option.
Andre Noll [Mon, 26 May 2008 09:38:47 +0000 (11:38 +0200)]
Honor the --database_dir option.

15 years agoMerge commit 'meins/master'
Andre Noll [Mon, 26 May 2008 09:24:34 +0000 (11:24 +0200)]
Merge commit 'meins/master'

Conflicts:

Makefile
adu.c

15 years agoGet rid of the osl code.
Andre Noll [Mon, 26 May 2008 09:00:56 +0000 (11:00 +0200)]
Get rid of the osl code.

Use libosl instead.

15 years agoAdd documentation for double_hash().
Andre Noll [Mon, 26 May 2008 00:04:40 +0000 (02:04 +0200)]
Add documentation for double_hash().

15 years agoMake --loglevel and --S work.
Andre Noll [Sun, 25 May 2008 23:35:53 +0000 (01:35 +0200)]
Make --loglevel and --S work.

15 years agoAdd gengetopt support.
Andre Noll [Sun, 25 May 2008 23:29:30 +0000 (01:29 +0200)]
Add gengetopt support.

First draft of planned options. None is actually implemented so far..

15 years agoImplement the select command.
Andre Noll [Sun, 25 May 2008 21:00:30 +0000 (23:00 +0200)]
Implement the select command.

This seperates the creation of the osl tables and the pretty-printing
of the statistics.

To do this, it is necessary to close the tables properly on exit. This
change also fixed some memory leaks.

For the select command the new code reads the uid file and recomputes
the gloabal and the user stats from the osl tables.

15 years agoWrite the list of all uids to a file.
Andre Noll [Sun, 25 May 2008 16:35:41 +0000 (18:35 +0200)]
Write the list of all uids to a file.

The select command will need this.

15 years agoAdd #define for database dir.
Andre Noll [Sun, 25 May 2008 16:11:18 +0000 (18:11 +0200)]
Add #define for database dir.

Of course, this should be configurabe intstead..

15 years agoReplace id table by hash table.
Andre Noll [Sun, 25 May 2008 16:08:27 +0000 (18:08 +0200)]
Replace id table by hash table.

This should make uid lookups much faster. We use a power of two for
the hash table size and open addressing with double hashing to handle
hash collisions.

15 years agoremove memory leak in scan_dir()
Sebastian Stark [Tue, 20 May 2008 15:22:00 +0000 (17:22 +0200)]
remove memory leak in scan_dir()

the tmp pointer is used only for directory entries. However, it was allocated
unconditionally and was not freed in case of regular files.

15 years agoMerge commit 'stark/master'
Andre Noll [Tue, 20 May 2008 09:24:54 +0000 (11:24 +0200)]
Merge commit 'stark/master'

15 years agoInsert missing tab in stat output.
Andre Noll [Mon, 19 May 2008 19:46:34 +0000 (21:46 +0200)]
Insert missing tab in stat output.

15 years agoReplace dir hash by dir num.
Andre Noll [Mon, 19 May 2008 19:46:12 +0000 (21:46 +0200)]
Replace dir hash by dir num.

This should work equally well, eats less memory and cpu, and doesn't
require openssl.

15 years agoput tab between number of files and number of bytes in dir_stats
Sebastian Stark [Mon, 19 May 2008 16:21:30 +0000 (18:21 +0200)]
put tab between number of files and number of bytes in dir_stats

15 years agolink against libcrypto instead of libssl
Sebastian Stark [Mon, 19 May 2008 16:03:10 +0000 (18:03 +0200)]
link against libcrypto instead of libssl

15 years agoInitial git checkin.
Andre Noll [Mon, 19 May 2008 15:40:01 +0000 (17:40 +0200)]
Initial git checkin.

Not nice, but kinda working.