1
0
mirror of synced 2025-01-18 00:56:49 +01:00

fix: Way too many bytes being used for digram and layered distribution plot

This commit is contained in:
WerWolv 2023-11-23 23:00:31 +01:00
parent 45a3ea18d0
commit 0b06b1e1e8

View File

@ -154,7 +154,7 @@ namespace hex {
void update(u8 byte) { void update(u8 byte) {
// Check if there is some space left // Check if there is some space left
if (this->m_byteCount < this->m_fileSize) { if (this->m_byteCount < this->m_fileSize) {
if (this->m_byteCount % (this->m_fileSize / this->m_sampleSize)) if ((this->m_byteCount % (this->m_fileSize / this->m_sampleSize)) == 0)
this->m_buffer.push_back(byte); this->m_buffer.push_back(byte);
++this->m_byteCount; ++this->m_byteCount;
if (this->m_byteCount == this->m_fileSize) { if (this->m_byteCount == this->m_fileSize) {
@ -250,7 +250,7 @@ namespace hex {
void update(u8 byte) { void update(u8 byte) {
// Check if there is some space left // Check if there is some space left
if (this->m_byteCount < this->m_fileSize) { if (this->m_byteCount < this->m_fileSize) {
if (this->m_byteCount % (this->m_fileSize / this->m_sampleSize)) if ((this->m_byteCount % (this->m_fileSize / this->m_sampleSize)) == 0)
this->m_buffer.push_back(byte); this->m_buffer.push_back(byte);
++this->m_byteCount; ++this->m_byteCount;
if (this->m_byteCount == this->m_fileSize) { if (this->m_byteCount == this->m_fileSize) {