summaryrefslogtreecommitdiff
path: root/Applications/SystemMonitor/NetworkStatisticsWidget.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-20 15:19:46 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-20 15:20:10 +0200
commit50a65604130f9c0aea46799231e88ac956ac018b (patch)
tree18313ba97554de907a855f9351816b9c226cae8a /Applications/SystemMonitor/NetworkStatisticsWidget.cpp
parentc34fd10b5bcf1e692cd609b5b156abd70624f7b7 (diff)
downloadserenity-50a65604130f9c0aea46799231e88ac956ac018b.zip
LibCore: Convert CTimer to ObjectPtr
Diffstat (limited to 'Applications/SystemMonitor/NetworkStatisticsWidget.cpp')
-rw-r--r--Applications/SystemMonitor/NetworkStatisticsWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/SystemMonitor/NetworkStatisticsWidget.cpp b/Applications/SystemMonitor/NetworkStatisticsWidget.cpp
index 4820755d5e..e728e2cd3e 100644
--- a/Applications/SystemMonitor/NetworkStatisticsWidget.cpp
+++ b/Applications/SystemMonitor/NetworkStatisticsWidget.cpp
@@ -55,7 +55,7 @@ NetworkStatisticsWidget::NetworkStatisticsWidget(GWidget* parent)
net_tcp_fields.empend("bytes_out", "Bytes Out", TextAlignment::CenterRight);
m_socket_table_view->set_model(GJsonArrayModel::create("/proc/net/tcp", move(net_tcp_fields)));
- m_update_timer = new CTimer(
+ m_update_timer = CTimer::create(
1000, [this] {
update_models();
},