From 138efa6cec7d4d174137a9c599ec5eab43b8e6dc Mon Sep 17 00:00:00 2001 From: Anatoly Yakovenko Date: Sun, 6 May 2018 22:06:19 -0700 Subject: [PATCH] fixed constant --- src/recorder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/recorder.rs b/src/recorder.rs index 674b99c370..cb6f81f09c 100644 --- a/src/recorder.rs +++ b/src/recorder.rs @@ -84,7 +84,7 @@ impl Recorder { // Record an entry early if we anticipate its serialized size will // be larger than 64kb. At the time of this writing, we assume each // event will be well under 256 bytes. - if self.events.len() >= BLOB_SIZE / (2 * mem::size_of::()) { + if self.events.len() >= BLOB_SIZE / 256 { self.record_entry()?; } }