Commit 00fb1d70 by Alan Mishchenko

Suggested fix to compile on FreeBSD.

parent 30a06d00
...@@ -80,11 +80,13 @@ ABC_NAMESPACE_IMPL_END ...@@ -80,11 +80,13 @@ ABC_NAMESPACE_IMPL_END
ABC_NAMESPACE_IMPL_START ABC_NAMESPACE_IMPL_START
using namespace Gluco;
double Gluco::memUsed(void) { double Gluco::memUsed(void) {
struct rusage ru; struct rusage ru;
getrusage(RUSAGE_SELF, &ru); getrusage(RUSAGE_SELF, &ru);
return (double)ru.ru_maxrss / 1024; } return (double)ru.ru_maxrss / 1024; }
double MiniSat::memUsedPeak(void) { return memUsed(); } double memUsedPeak(void) { return memUsed(); }
ABC_NAMESPACE_IMPL_END ABC_NAMESPACE_IMPL_END
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment