[gnome-system-monitor] Reformat.
- From: Benoît Dejean <bdejean src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Reformat.
- Date: Fri, 28 Oct 2016 13:45:39 +0000 (UTC)
commit b9cb1af2c4ea1c84cc817fdbf04bea49da8b3e19
Author: Benoît Dejean <bdejean gmail com>
Date: Fri Oct 28 15:19:03 2016 +0200
Reformat.
src/cgroups.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/cgroups.cpp b/src/cgroups.cpp
index 42d1eef..3080fdc 100644
--- a/src/cgroups.cpp
+++ b/src/cgroups.cpp
@@ -61,7 +61,12 @@ get_process_cgroup_string(pid_t pid) {
/* read out of /proc/pid/cgroup */
auto path = "/proc/" + std::to_string(pid) + "/cgroup";
std::string text;
- try { text = Glib::file_get_contents(path); } catch (...) { return file_cache[""]; }
+
+ try {
+ text = Glib::file_get_contents(path);
+ } catch (...) {
+ return file_cache[""];
+ }
auto it = file_cache.insert({ text, "" });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]