Remove network monitoring features and related code; update GPU monitoring in dashboard for improved performance and clarity.

This commit is contained in:
Din
2025-08-08 11:45:48 +08:00
parent 35828f189c
commit 5ece1fbe27
6 changed files with 71 additions and 164 deletions
-15
View File
@@ -113,21 +113,6 @@ namespace ResourceMonitorService.Controllers
}
}
[HttpGet("network")]
public async Task<ActionResult<NetworkUsage>> GetNetworkUsage()
{
try
{
var networkUsage = await _resourceMonitorService.GetNetworkUsageAsync();
return Ok(networkUsage);
}
catch (Exception ex)
{
_logger.LogError(ex, "Error getting network usage");
return StatusCode(500, "Internal server error");
}
}
[HttpGet("processes")]
public async Task<ActionResult<List<ProcessInfo>>> GetTopProcesses([FromQuery] int count = 10)
{