Added error message in case a not-yet-supported platform tries to report
memory or #procs.
This commit is contained in:
parent
b3c2909053
commit
f31a85268e
@ -69,6 +69,8 @@ int getRAM()
|
||||
memory_size /= (1024*1024);
|
||||
return int(memory_size);
|
||||
#endif
|
||||
Log::error("HW report",
|
||||
"No RAM information available for hardware report.");
|
||||
return 0;
|
||||
} // getRAM
|
||||
|
||||
@ -95,6 +97,9 @@ int getNumProcessors()
|
||||
assert(ret != -1);
|
||||
return ncpus;
|
||||
#endif
|
||||
Log::error("HW report",
|
||||
"Number of processors not available for hardware report.");
|
||||
return 0;
|
||||
} // getNumProcessors
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user