aboutsummaryrefslogtreecommitdiff
path: root/bbot/agent.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-04-04 14:58:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-04-04 14:58:08 +0200
commit578413a1f8781f03c2ddccb4d3c5d441c9579a3b (patch)
treee09764195dbf2027f6bd3f9be3b0d280c99b9340 /bbot/agent.cxx
parent1af66bf90d14ec32ec0df5fe266674bd08ecf5e1 (diff)
Add --cpu and --ram options
Diffstat (limited to 'bbot/agent.cxx')
-rw-r--r--bbot/agent.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/bbot/agent.cxx b/bbot/agent.cxx
index 26b0073..8c281fe 100644
--- a/bbot/agent.cxx
+++ b/bbot/agent.cxx
@@ -99,6 +99,16 @@ try
return p.wait () ? 0 : 1;
}
+ if (argc != 2)
+ fail << "toolchain name excected" <<
+ info << "run " << argv[0] << " --help for details";
+
+ string tc (argv[1]);
+
+ info << "starting bbot agent for toolchain " << tc <<
+ info << ops.cpu () << " CPU(s)" <<
+ info << ops.ram () << " RAM(kB)";
+
for (;;)
{
error << "sleeping" <<