Versie 1.0.1

This commit is contained in:
Chris Josten 2021-04-09 14:57:26 +02:00
parent e0f0e6b05c
commit 2ac806f8e1
3 changed files with 5 additions and 4 deletions

View file

@ -238,7 +238,7 @@ public:
*/
bool gebruikersActief() {
auto resultaat = execute(["who"]);
return resultaat.output.splitLines().length == 0;
return resultaat.output.splitLines().length 1= 0;
}
void sluitAf() {
@ -257,7 +257,7 @@ int main(string[] args) {
}
} else {
scope(failure) stderr.writefln("GEBRUIK: %s WACHTTIJD", args[0]);
if (args.length < 2) {
if (args.length < 3) {
stderr.writefln("GEBRUIK: %s WACHTTIJD", args[0]);
return -1;
}