summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-11-27Initialize time and file position to 0.stateful-pgJon Bergli Heier1-2/+2
2010-11-24Store last active time.Jon Bergli Heier3-10/+19
2010-11-18Skip <NULL> when saving nicks.Jon Bergli Heier1-1/+1
2010-11-17Use correct table name for user lines update.Jon Bergli Heier1-1/+1
2010-11-17Read user lines from database.Jon Bergli Heier1-1/+17
2010-11-17Fixed prototypes in pg.h.Jon Bergli Heier3-3/+4
2010-11-17Drop channel_hours, as this can be calculated from user_hours with channel_id.Jon Bergli Heier1-8/+0
2010-11-17Use getopt to parse commandline options.Jon Bergli Heier1-5/+34
2010-11-17Use id for users and words to decide whether to insert or update.Jon Bergli Heier1-35/+19
2010-11-16Store words.Jon Bergli Heier5-7/+79
2010-11-16User lines and minor fixes.Jon Bergli Heier5-17/+59
2010-11-15Implemented most database queries.Jon Bergli Heier4-4/+193
2010-11-15Updated .gitignore.Jon Bergli Heier1-0/+5
2010-11-15Added some ecpg stuff.Jon Bergli Heier6-2/+154
2010-11-15Removed XML export.Jon Bergli Heier8-164/+5
2010-11-12Remove broken threading support.Jon Bergli Heier6-94/+7
2010-11-10Lock calls to fgets().lastseenJon Bergli Heier1-2/+14
2010-11-09Temporary workaround for race condition in early parsing.Jon Bergli Heier1-2/+10
Parsing the date in log_opened and day_changed takes its time, so other threads might set the time and use that before the initial date is set. This only really matters for seen_first as of now.
2010-11-09Free all regexes in rs_free().Jon Bergli Heier1-0/+11
2010-11-09Avoid race condition on setting seen_first and seen_last.Jon Bergli Heier1-12/+14
2010-11-09Modified time branch to store only first and last time seen.Jon Bergli Heier6-202/+55
2010-06-05Mostly-working implementation of time tracking for users.timeJon Bergli Heier8-28/+506
Needs some more testing.
2010-06-03Return NULL from thread_func.Jon Bergli Heier1-0/+2
2010-06-03Degrade struct ircstats_config_t's members to int.Jon Bergli Heier1-1/+1
2010-06-03Merge branch 'textwriter'Jon Bergli Heier1-50/+78
2010-06-02Fixed word count i XML output.Jon Bergli Heier1-1/+1
2010-06-02Added a minimum word length config option, "wordlen_min".Jon Bergli Heier3-23/+22
Also did some minor cleanup of the word add code in process_file.
2010-06-02Cleaned up old code.Jon Bergli Heier1-56/+14
2010-06-02Fixed writing user data.Jon Bergli Heier1-7/+7
2010-06-02Attempting to use text writer instead of building an XML tree and writing it.Jon Bergli Heier1-28/+98
2010-03-26Fixed memory leaks in hash tables and nick list.Jon Bergli Heier4-1/+7
2010-01-28Fixed mutex locks on several objects in process_file().Jon Bergli Heier1-8/+20
2010-01-28Fixed monolog readings not being synchronized when using more than oneJon Bergli Heier1-3/+7
thread. This is solved by moving last_user, in_monolog and monolog_len to the heap. These are already inside the user_mutex lock when used.
2010-01-08Fixed compiler warnings.Jon Bergli Heier2-32/+32
Upgraded word_t's count to long long.
2010-01-08Implemented monolog counters.Jon Bergli Heier6-3/+30
2010-01-08Added -Wall to CCFLAGS for debug builds.Jon Bergli Heier1-1/+1
2010-01-08SConstruct: Use options to determine build type.Jon Bergli Heier1-6/+4
2009-12-12Replaced Makefile with SConstruct.Jon Bergli Heier3-25/+32
ircstats now builds by running scons instead of make. Build with DEBUG set to compile with -g. Also added scons-related stuff to .gitignore.
2009-11-22Added support for using pthreads.Jon Bergli Heier6-117/+191
Data processing (parsing) moved to parsing.c. The line parsing code is moved to its own function which is called from one or more threads (depends on the "threads" setting in the config file).
2009-10-23Store a pointer to the correct user (user->real_user) for users with mapped ↵Jon Bergli Heier2-5/+6
nicks to avoid looking up the nick on every call to user_get().
2009-10-20Parse kicks and store number of kicks and times kicked per user.Jon Bergli Heier7-11/+42
2009-09-06Count the number of total characters per user.Jon Bergli Heier4-2/+5
2009-09-06export_xml: Add continue after setting user when checking for the <NULL> user.Jon Bergli Heier1-0/+2
export_xml: Include string.h for strcmp.
2009-09-05Skip <NULL> when exporting users.Jon Bergli Heier1-0/+4
2009-09-05Fixed lines_node being added as a child of users_node instead of user_node ↵Jon Bergli Heier1-1/+1
in export_xml.
2009-09-05Convert characters to lowercase when counting words.Jon Bergli Heier1-1/+1
2009-09-05Add locale and multibyte support.Jon Bergli Heier3-11/+29
Set LC_CTYPE to support locales. Use wchar_t to handle multibyte strings. Generate character tables for PCRE to support locales.
2009-08-26Replace sprintf with snprintfJon Bergli Heier2-6/+6
2009-08-24Export words to XML.Jon Bergli Heier2-0/+19
2009-08-21Implemented nick_get - nicks can now be mappedJon Bergli Heier5-3/+23