diff options
author | bd <bdunahu@operationnull.com> | 2025-03-08 13:47:22 -0500 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-08 13:47:22 -0500 |
commit | 8fc631090fd88a7e8e62f284c3dfd3c515d14613 (patch) | |
tree | 12a45c9bf09700ef9da32493bfe638ef34ddfb59 /src | |
parent | 46472983e5b570ab7c73c13b75010bddc90a6316 (diff) |
Fix bug where wait_time would decrease while idle
Diffstat (limited to 'src')
-rw-r--r-- | src/storage/dram.cc | 1 | ||||
-rw-r--r-- | src/storage/storage.cc | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/storage/dram.cc b/src/storage/dram.cc index 32f3fbb..5b4c63b 100644 --- a/src/storage/dram.cc +++ b/src/storage/dram.cc @@ -2,7 +2,6 @@ #include "definitions.h" #include "response.h" #include <algorithm> -#include <iostream> Dram::Dram(int lines, int delay) { diff --git a/src/storage/storage.cc b/src/storage/storage.cc index 429ac2b..429f8aa 100644 --- a/src/storage/storage.cc +++ b/src/storage/storage.cc @@ -26,7 +26,7 @@ void Storage::resolve() if (this->wait_time == 0) { this->deque.pop_front(); this->wait_time = delay; - } else { + } else if (!this->deque.empty()) { --this->wait_time; } } |