PDA

View Full Version : stats limit bug?


mr_F_2
01-11-2005, 06:23 PM
stats limit doesn't display any results when using line:
site stats monthdn limit -username
but
site stats monthdn limit username works fine

works this way with all stat formats (ie: alldn, allup, monthup, ... etc etc)

ie:

site stats alldn limit -mr_F
200- ______________._________ . _________________.___ ___
200- __.\____ ___ \_ _ \ _:__\____ ___ _____ \| | _.__
200-_ _|____ / \/ | / _____/__|___;_ / \/ _\_|_ \ |__|_ __
200- ___|__ / \ | // | ___|_._|__ // \ / // \ | ___|_
200- __|_\_____/_____\ | _|___|___|.\_____/_______/___|\ |._|_
200- .------------------.\___| ALLTiME DOWNLOADERS... \__| :-----.
200-.--------------------------------------------------------------------------=-.
200-| [##] User Group Tagline Files Megabytes Avg k/s |
200-|-=------------------------------------------------------------------------=-|
200-'-=------------------------------------------------------------------------=-'
200 stats Command successful.
site stats alldn limit mr_F
200- ______________._________ . _________________.___ ___
200- __.\____ ___ \_ _ \ _:__\____ ___ _____ \| | _.__
200-_ _|____ / \/ | / _____/__|___;_ / \/ _\_|_ \ |__|_ __
200- ___|__ / \ | // | ___|_._|__ // \ / // \ | ___|_
200- __|_\_____/_____\ | _|___|___|.\_____/_______/___|\ |._|_
200- .------------------.\___| ALLTiME DOWNLOADERS... \__| :-----.
200-.--------------------------------------------------------------------------=-.
200-| [##] User Group Tagline Files Megabytes Avg k/s |
200-|-=------------------------------------------------------------------------=-|
200-| [01] mr_F SiTEOPS HERO (siteop) 37 97MB 99581K/s |
200-'-=------------------------------------------------------------------------=-'
200 stats Command successful.


can anyone confirm?
it's probably just not testing to see if the user delimiter is in front, not sure if it's supposed to, i figured for continuity it probably should test for that.

neoxed
01-11-2005, 06:25 PM
The SITE STATS command is supposed to work like that.

http://www.ioftpd.com/documentation/06-sitecmds.php#stats

limit <user/=group> - Limit stats to specific user/group

mr_F_2
01-11-2005, 06:26 PM
see above edit.. i figured this might not be a bug but just wanted to check.

neoxed
01-11-2005, 06:32 PM
Ahh, you edited it just as I was replying. :)

Originally posted by mr_F
i figured for continuity it probably should test for that. Well as far as consistency goes, SITE CHANGE and SITE USERS work the same way (no prefix for users and "=" for groups). The !, -, and = prefixes are usually used for various permissions (VFS, commands, etc.) in the ioFTPD.ini.