Add bytes to user bandwidth.tally

shark_tracepoin

New member
Joined
Aug 26, 2009
Messages
4
Hi,
I have one question. When I add bytes like this:

#add 1 mb to user bandwith
echo "1000000" > /usr/local/directadmin/data/users/$user/bandwidth.tally

DA add this bytes to user usage, but in user account history it always show in email column. How to mark this as "other" not email usage?

Date Apache Email Ftp DirectAdmin Other Total Email Deliveries (Sent)
2011 04 01 73.6 MB 681.4 MB 0.00 KB 0.00 KB 0.00 KB 755.0 MB 55 (0)
 
Hello!

I was stuck on the same problem today and could not find the answer. I have found out how to add it to the "other" column by trial and error:

echo "1000000.000000=type=whatever" >> /usr/local/directadmin/data/users/$user/bandwidth.tally

You can change "whatever" to whatever (MySQL, PostgreSQL, etc.) :)
 
Back
Top