Skip to content

Commit

Permalink
GUI: fix update event
Browse files Browse the repository at this point in the history
  • Loading branch information
jdupak committed Dec 31, 2024
1 parent 2a4153e commit 2cfa890
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/windows/cache/cachedock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,22 @@ void CacheDock::paintEvent(QPaintEvent *event) {

void CacheDock::hit_update(unsigned val) {
hit = val;
update();
}

void CacheDock::miss_update(unsigned val) {
miss = val;
update();
}

void CacheDock::memory_reads_update(unsigned val) {
memory_reads = val;
update();
}

void CacheDock::memory_writes_update(unsigned val) {
memory_writes = val;
update();
}

void CacheDock::statistics_update(
Expand All @@ -106,4 +110,5 @@ void CacheDock::statistics_update(
this->stalled = stalled_cycles;
this->hit = hit_rate;
this->speed_improv = speed_improv;
update();
}

0 comments on commit 2cfa890

Please sign in to comment.