From f610061c7f0c274634b174176c88a86416f7bbd0 Mon Sep 17 00:00:00 2001 From: cuihaikuo Date: Thu, 27 Sep 2018 13:43:16 +0800 Subject: [PATCH] Fix '(null)' user problem in traffic statistics. --- server/access-file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server/access-file.c b/server/access-file.c index fca4670..454f965 100644 --- a/server/access-file.c +++ b/server/access-file.c @@ -1482,6 +1482,7 @@ access_blks_cb(evhtp_request_t *req, void *arg) repo_id = seafile_web_access_get_repo_id (webaccess); id = seafile_web_access_get_obj_id (webaccess); operation = seafile_web_access_get_op (webaccess); + user = seafile_web_access_get_username (webaccess); repo = seaf_repo_manager_get_repo(seaf->repo_mgr, repo_id); if (!repo) {