Reset user stats

Need help? Post your questions here.

Moderator: moderators

Reset user stats

Postby kapz » Mon Apr 14, 2008 9:34 pm

hi sindre,

I would like to reset the user stats (the view that shows how much MB each user streamed/downloaded, etc). What file do I need to edit to start the stats out clean for all the users?

Thanks.

-kapz
User avatar
kapz
 
Posts: 124
Joined: Wed Jun 21, 2006 7:23 pm

Postby kdid » Tue Apr 15, 2008 9:11 am

And when that heve been mentioned.

Could you make the bar graph in home->users logarithmic?

That way one power user would not blow the scale for all the other users.

Adding some vertical lines too would help.
-- kdid
kdid
 
Posts: 131
Joined: Tue Jan 02, 2007 11:17 am

Re: Reset user stats

Postby sindre_mehus » Tue Apr 15, 2008 5:40 pm

kapz wrote:I would like to reset the user stats (the view that shows how much MB each user streamed/downloaded, etc). What file do I need to edit to start the stats out clean for all the users?
-kapz


Log on with admin rights, go to http://localhost/subsonic/db.view and run the following query:

Code: Select all
update user set bytes_streamed=0, bytes_downloaded=0, bytes_uploaded = 0


Note: This will reset the usage data for all users.

Cheers,
Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby sindre_mehus » Tue Apr 15, 2008 5:41 pm

kdid wrote:Could you make the bar graph in home->users logarithmic?


Yeah, that's a good idea. I'll see what I can do about it.

Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby kapz » Tue Apr 15, 2008 8:39 pm

Many Thanks Sindre for your help. Maybe an Admin button to do this action. Standard SQL is easy enough though.

Could you make the bar graph in home->users logarithmic?


I agree with kdid suggestion
User avatar
kapz
 
Posts: 124
Joined: Wed Jun 21, 2006 7:23 pm

Postby pha9992001 » Thu Mar 18, 2010 4:13 am

I am a little confused on reading the usage charts. They are in (MB), but are they using decimal commas? (I'm in the US, where we use decimal points)
pha9992001
 
Posts: 41
Joined: Sat Mar 07, 2009 12:11 am

Postby 3R3 » Thu Mar 18, 2010 5:31 pm

the points are the "thousands separator" (sp?) i believe. just noticed that my stats are unreasonably high, even conssidering heavy usage...probably the stats for "streaming" are what is fed into the transcoder, so its not what is actually transmitted...thats just a guess though, someone can confirm this?
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany


Return to Help

Who is online

Users browsing this forum: No registered users and 13 guests