update tracker/fdfs_shared_func.c.

tracker.conf中配置为容量时
reserved_storage_space = 1g
storage启动报错日志
[2022-07-05 18:12:09] ERROR - file: shared_func.c, line: 2449, unkown byte unit:  MB, input string: 1024 MB
[2022-07-05 18:12:09] CRIT - exit abnormally!
pull/585/head
juntt 2022-07-06 03:03:28 +00:00 committed by Gitee
parent 75e10b28f9
commit fc31983958
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ const char *fdfs_storage_reserved_space_to_string(FDFSStorageReservedSpace \
if (pStorageReservedSpace->flag == \
TRACKER_STORAGE_RESERVED_SPACE_FLAG_MB)
{
sprintf(buff, "%d MB", pStorageReservedSpace->rs.mb);
sprintf(buff, "%dMB", pStorageReservedSpace->rs.mb);
}
else
{