This commit is contained in:
JustArchi
2020-11-28 23:18:23 +01:00
parent 97ee4eaef2
commit ba702a1dae
3 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ namespace ArchiSteamFarm.IPC.Controllers.Api {
[ProducesResponseType(typeof(GenericResponse<ASFResponse>), (int) HttpStatusCode.OK)]
public ActionResult<GenericResponse<ASFResponse>> ASFGet() {
if (ASF.GlobalConfig == null) {
throw new ArgumentNullException(nameof(ASF.GlobalConfig));
throw new InvalidOperationException(nameof(ASF.GlobalConfig));
}
uint memoryUsage = (uint) GC.GetTotalMemory(false) / 1024;