Fixed some formatting issues.

This commit is contained in:
0xJoeMama 2022-05-20 23:48:59 +03:00
parent ba0b34db3f
commit e70dbc1bce
No known key found for this signature in database
GPG key ID: 6E0A65853073294E

View file

@ -1,10 +1,11 @@
// clang-format off
/* Copyright 2021 Aristocratos (jakob@qvantnet.com) /* Copyright 2021 Aristocratos (jakob@qvantnet.com)
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
You may obtain a copy of the License at You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, distributed under the License is distributed on an "AS IS" BASIS,
@ -15,7 +16,6 @@
indent = tab indent = tab
tab-size = 4 tab-size = 4
*/ */
// clang-format off
#include <fstream> #include <fstream>
#include <ranges> #include <ranges>
@ -1505,7 +1505,7 @@ namespace Proc {
vector<size_t> found; vector<size_t> found;
for (const auto& d: fs::directory_iterator(Shared::procPath)) { for (const auto& d: fs::directory_iterator(Shared::procPath)) {
if (Runner::stopping) if (Runner::stopping)
return current_procs; return current_procs;
if (pread.is_open()) pread.close(); if (pread.is_open()) pread.close();
const string pid_str = d.path().filename(); const string pid_str = d.path().filename();