Skip to content

Commit 58d0519

Browse files
committed
Fix hestiacp#833 v-update-user-stats without args is updating all user stats, no need to loop over all users here
- The underling problem is in v-update-user-stats which is resetting global user stats when updateing individual users
1 parent 7bb52d8 commit 58d0519

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bin/v-list-users-stats

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ check_args '0' "$#" '[FORMAT]'
122122
#----------------------------------------------------------#
123123

124124
# Ensure statistics are up to date
125-
for user in $($HESTIA/bin/v-list-sys-users plain); do
126-
$BIN/v-update-user-stats $user
127-
done
125+
$BIN/v-update-user-stats
128126

129127
# Defining config
130128
conf=$HESTIA/data/users/admin/overall_stats.log

0 commit comments

Comments
 (0)