Continued from dialog exchanged with user nospam on this ticket.
I'm noticing that NCIDD on my raspi now takes over 2 minutes to "Add Alias" and I only have about 2100 call records in the log file.
nospam sent log via private email attachment.
nospam provided the following info:
$ wc -l /var/log/cidcall.log 2089 /var/log/cidcall.log $ ls -l /var/log/cidcall.log -rw-r--r-- 1 root root 176894 Apr 27 19:16 /var/log/cidcall.log
Obfuscated relevant ncidd.log lines:
REQ: UPDATES Begin: Executing /usr/bin/cidupdate [12:43:23] End: Executing /usr/bin/cidupdate [12:43:23] /usr/bin/cidupdate -a /etc/ncid/ncidd.alias -c /var/log/cidcall.log < /dev/null 2>&1 --multi < /dev/null 2>&1 401 Start of data requiring ACCEPT or REJECT INFO: There was 1 change to /var/log/cidcall.log INFO: INFO: (NAMEDEP) Changed "Hangup" to "SPAM" for 19999999999 1 time 410 End of data WRK: ACCEPT LOGS for f in /var/log/cidcall.log.*[0-9]; do mv $f.new $f; done [12:45:57] mv /var/log/cidcall.log.new /var/log/cidcall.log [12:45:57]
Anonymous
Hi nospam,
I just noticed your command lines didn't have the asterisks for wildcards. Here are those lines to execute again:
$ wc -l /var/log/cidcall.log
2095 /var/log/cidcall.log
$ ls -l /var/log/cidcall.log
-rw-r--r-- 1 root root 177382 Apr 29 14:25 /var/log/cidcall.log
Hi nospam,
Attached .tar file contains a modified
ncidd
binary calledncidd-1.4a
. It changes some of the timestamps. To install, transfer it to your RPi and put it in your home directory. Then type:This will put it in /usr/sbin. To test, stop your running instance of
ncidd
and launch this new one:Duplicate the delay in adding an alias, wait until NCIDpop refreshes the call history, then stop
ncidd-1.4a
using ctrl-c. Send us /tmp/ncidd-temp2.txt via private email attachment (jlc@users.sf.net and tandrews@users.sf.net).Lastly, launch your normal instance of
ncidd
.Hi nospam,
Is this still an issue for you?
Yes and No. I have purged the database to make the add alias feature work quicker. I'm trying to keep it under 1000 records. Over that it takes a long time to "add alias".
Mike
On 2017-11-14, 11:51 AM, "Todd Andrews" tandrews@users.sf.net wrote:
Hi Mike,
We're brainstorming about this issue. Which client or clients do you use when adding an alias? NCIDpop, the Universal NCID Client (a.k.a. ncid.sh), or something else?
NCIDpop on OSX. I don't use any other clients
On 2017-11-18, 4:51 PM, "Todd Andrews" tandrews@users.sf.net wrote:
OK, thanks. The current thinking is to convert the call log updater (cidupdate) from a Perl script to a C program.
The cidupdate script was converted to a C program and will be in NCID releas 1.11.
cidupdate was changed from a script to a C program in 1.11