From 40ba93654e4e53bb0e72e6f378dc8ba6578760e5 Mon Sep 17 00:00:00 2001 From: Daenney Date: Fri, 1 Mar 2024 15:47:03 +0100 Subject: [docs] Use human sizes for size limitations (#2706) This switches the documentation to use human sizes, so 50MiB instead of an integer number of bytes. This makes it much easier to understand what values are set, and less likely to accidentally set the wrong value. --- testrig/config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testrig/config.go') diff --git a/testrig/config.go b/testrig/config.go index 5dbacc155..c3a62aed4 100644 --- a/testrig/config.go +++ b/testrig/config.go @@ -85,13 +85,13 @@ var testDefaults = config.Configuration{ AccountsAllowCustomCSS: true, AccountsCustomCSSLength: 10000, - MediaImageMaxSize: 10485760, // 10mb - MediaVideoMaxSize: 41943040, // 40mb + MediaImageMaxSize: 10485760, // 10MiB + MediaVideoMaxSize: 41943040, // 40MiB MediaDescriptionMinChars: 0, MediaDescriptionMaxChars: 500, MediaRemoteCacheDays: 7, - MediaEmojiLocalMaxSize: 51200, // 50kb - MediaEmojiRemoteMaxSize: 102400, // 100kb + MediaEmojiLocalMaxSize: 51200, // 50KiB + MediaEmojiRemoteMaxSize: 102400, // 100KiB MediaCleanupFrom: "00:00", // midnight. MediaCleanupEvery: 24 * time.Hour, // 1/day. -- cgit v1.2.3