diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2018-07-02 16:32:41 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-07-03 11:33:32 +0200 |
| commit | daa700703a1e93c3d768fbbe3a36779bc0bd385c (patch) | |
| tree | 5dda9ec4ee8e55500a06648e6720a265f2617d3b | |
| parent | cccb27337a2a4cbf248cdf6b9a96d15dc05c9d9a (diff) | |
| download | mullvadvpn-daa700703a1e93c3d768fbbe3a36779bc0bd385c.tar.xz mullvadvpn-daa700703a1e93c3d768fbbe3a36779bc0bd385c.zip | |
Update report size calculation with new numbers
| -rw-r--r-- | mullvad-problem-report/src/main.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mullvad-problem-report/src/main.rs b/mullvad-problem-report/src/main.rs index bc03d31673..ba8426b32b 100644 --- a/mullvad-problem-report/src/main.rs +++ b/mullvad-problem-report/src/main.rs @@ -31,9 +31,10 @@ use std::path::{Path, PathBuf}; use std::process::Command; /// Maximum number of bytes to read from each log file -const LOG_MAX_READ_BYTES: usize = 1 * 1024 * 1024; -/// Fit two logs plus some system information in the report. -const REPORT_MAX_SIZE: usize = 2 * LOG_MAX_READ_BYTES + 16 * 1024; +const LOG_MAX_READ_BYTES: usize = 512 * 1024; +const EXTRA_BYTES: usize = 32 * 1024; +/// Fit five logs plus some system information in the report. +const REPORT_MAX_SIZE: usize = (5 * LOG_MAX_READ_BYTES) + EXTRA_BYTES; /// Field delimeter in generated problem report |
