diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-20 15:19:46 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-20 15:20:10 +0200 |
commit | 50a65604130f9c0aea46799231e88ac956ac018b (patch) | |
tree | 18313ba97554de907a855f9351816b9c226cae8a /Applications/SystemMonitor/NetworkStatisticsWidget.cpp | |
parent | c34fd10b5bcf1e692cd609b5b156abd70624f7b7 (diff) | |
download | serenity-50a65604130f9c0aea46799231e88ac956ac018b.zip |
LibCore: Convert CTimer to ObjectPtr
Diffstat (limited to 'Applications/SystemMonitor/NetworkStatisticsWidget.cpp')
-rw-r--r-- | Applications/SystemMonitor/NetworkStatisticsWidget.cpp | 2 |
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(); }, |