Open cbftp opened 4 years ago
I just set up a Debian 10 VM to give this a test and the prebw binary seems to be working okay.
root@debian:~/prebw# /jail/glftpd/bin/prebw /site/Test
root@debian:~/prebw# tail -n1 /jail/glftpd/ftp-data/logs/glftpd.log
Tue May 12 14:49:53 2020 PREBW: "/site/Test" "0" "0.0" "2" "337.5" "2" "240.4" "1" "29.0" "1" "29.1" "1" "29.1" "1" "29.2" "2" "1" "1747.81"
root@debian:~/prebw#
So unless the bot isn't passing the right path to prebw (I'm too lazy to set up an eggdrop just now) I don't know why it wouldn't be working for you.
Hi, nice hint. Any idea why the bot would be passing the wrong path? ./prebw-bio blah.blah-DICKS returns 0's, but ./prebw-bio /site/incoming/porn/xxx-dicks returns the correct MB/users leeched at least.
Still some issue if I use the non-standard IPC_KEY (EG: 0xDEADBEEF) in a renamed glftpd.conf (dicks.conf for example) I don't see anything in the code that could cause the issue, and even hardcoding IPC_KEY in the prebw.cpp it still reads 0's...am I crazy?
Long story short, pass the FULLPATH + RLSNAME to make this work. (EG: ./prebw /site/incoming/isos/linux/debian12.iso)
ipc key is checked/correct. only outputs release name, the rest just outputs 0's for numusers/bw/etc