Skip to content

Commit

Permalink
summary
Browse files Browse the repository at this point in the history
  • Loading branch information
partouf committed Nov 22, 2023
1 parent 42930dd commit 3150e5c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ struct Config
{
bool debugging{false};
bool extra_debugging{false};
bool summary{false};
bool suspend_after_start{};
int time_limit_ms{};
int loopwait_ms{ 500 };
Expand Down
5 changes: 5 additions & 0 deletions src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ void cewrapper::Config::initFromArguments(int argc, wchar_t *argv[])
this->debugging = true;
arg_idx++;
}
else if (arg.compare(L"--summary") == 0)
{
this->summary = true;
arg_idx++;
}
else if (arg.starts_with(L"--config="))
{
this->loadFromFile(arg.substr(9));
Expand Down
2 changes: 1 addition & 1 deletion src/job.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cewrapper::Job::Job(const Config config) : config(config)

void cewrapper::Job::ReportOnJob()
{
if (this->config.extra_debugging)
if (this->config.extra_debugging || this->config.summary)
{
{
JOBOBJECTINFOCLASS infoclass = JOBOBJECTINFOCLASS::JobObjectExtendedLimitInformation;
Expand Down

0 comments on commit 3150e5c

Please sign in to comment.