--- nono/host/netdriver.cpp 2026/04/29 17:04:33 1.1.1.3 +++ nono/host/netdriver.cpp 2026/04/29 17:04:48 1.1.1.5 @@ -6,7 +6,6 @@ #include "netdriver.h" #include "mainapp.h" -#include "mystring.h" #include "mythread.h" static void *netdriver_run(void *); @@ -20,7 +19,7 @@ NetDriver::NetDriver(const char *drivern logname = "netdriver"; devname = "NetDriver"; - monitor.Init(30, 7); + monitor_size = nnSize(30, 7); fd = -1; drivername = drivername_; @@ -35,8 +34,8 @@ NetDriver::~NetDriver() } // モニタ -bool -NetDriver::MonitorUpdate() +void +NetDriver::MonitorUpdate(TextScreen& monitor) { monitor.Clear(); @@ -47,7 +46,6 @@ NetDriver::MonitorUpdate() monitor.Print(5, 4, "%9s %9s", "Packets", "Bytes"); monitor.Print(0, 5, "Send %9" PRIu64 " %9" PRIu64, tx_pkts, tx_bytes); monitor.Print(0, 6, "Recv %9" PRIu64 " %9" PRIu64, rx_pkts, rx_bytes); - return true; } // スレッドが必要な継承クラスが呼ぶ