Remove network monitoring features and related code; update GPU monitoring in dashboard for improved performance and clarity.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user