improved user listing speed

This commit is contained in:
Serghey Rodin 2011-12-23 17:42:41 +02:00
commit 2151ec2f37

View file

@ -10,7 +10,6 @@ format=${1-shell}
# Importing variables # Importing variables
source $VESTA/conf/vars.conf source $VESTA/conf/vars.conf
source $V_FUNC/shared.func
# Json function # Json function
json_list_users() { json_list_users() {
@ -100,7 +99,6 @@ case $format in
plain) nohead=1; shell_list_users ;; plain) nohead=1; shell_list_users ;;
shell) fields='$USER $PACKAGE $U_DISK $U_BANDWIDTH $SUSPENDED $DATE'; shell) fields='$USER $PACKAGE $U_DISK $U_BANDWIDTH $SUSPENDED $DATE';
shell_list_users | column -t ;; shell_list_users | column -t ;;
*) check_args '1' '0' '[format]' ;;
esac esac