mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +00:00
SystemMonitor: Use size_t for graph values
The memory and CPU graphs fail to display anything when the memory size is larger than 2**31 bytes, because of the small range of int. This commit makes replaces the type with size_t. Hopefully nobody will have 18 quintillion bytes of memory before this gets replaced. :^)
This commit is contained in:
parent
f73aa8e2bd
commit
7aa3cfda09
4 changed files with 9 additions and 9 deletions
|
@ -20,7 +20,7 @@ GraphWidget::~GraphWidget()
|
|||
{
|
||||
}
|
||||
|
||||
void GraphWidget::add_value(Vector<int, 1>&& value)
|
||||
void GraphWidget::add_value(Vector<size_t, 1>&& value)
|
||||
{
|
||||
m_values.enqueue(move(value));
|
||||
update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue