mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 00:46:17 +00:00
lib: Downgrade error for failing to determine swap interface to a warning
If we can't detect how much swap is available, presume none. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
1e74007b4c
commit
2035119201
@ -104,7 +104,8 @@ intel_get_total_ram_mb(void)
|
||||
|
||||
retval = (uint64_t) pagesize * npages;
|
||||
#else
|
||||
#error "Unknown how to get RAM size for this OS"
|
||||
#warning "Unknown how to get RAM size for this OS"
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
return retval / (1024*1024);
|
||||
|
Loading…
x
Reference in New Issue
Block a user