Skip to content

Commit

Permalink
fix linting; fix bump version script
Browse files Browse the repository at this point in the history
  • Loading branch information
stsdc committed Mar 9, 2023
1 parent cd3b394 commit 536fc83
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
com.github.stsdc.monitor (0.16.1) focal; urgency=low
com.github.stsdc.monitor (0.16.1-0) jammy; urgency=low

* Fix segfault when user can't be retrieved for process

Expand Down
2 changes: 1 addition & 1 deletion meson/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def bump_meson():
def bump_deb_changelog():
DEB_CHANGELOG_FILENAME = "../debian/changelog"
now = datetime.datetime.now()
deb_changelog_content = f"""com.github.stsdc.monitor ({sys.argv[1]}) focal; urgency=low\n
deb_changelog_content = f"""com.github.stsdc.monitor ({sys.argv[1]}) jammy; urgency=low\n
* <NEW FEATURE>\n -- Stanisław Dac <[email protected]> {now.strftime("%a, %d %b %Y %H:%M:%S %z")} +0000\n\n"""

with open(DEB_CHANGELOG_FILENAME, 'r+') as f_deb_changelog:
Expand Down
12 changes: 6 additions & 6 deletions src/Managers/Process.vala
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ public class Monitor.Process : GLib.Object {
uid = proc_uid.uid;


// getting username
// @TOFIX: Can't get username for postgres when started from docker (?)
unowned Posix.Passwd passwd = Posix.getpwuid (uid);
if (passwd != null){
username = passwd.pw_name;
}
// getting username
// @TOFIX: Can't get username for postgres when started from docker (?)
unowned Posix.Passwd passwd = Posix.getpwuid (uid);
if (passwd != null) {
username = passwd.pw_name;
}


exists = parse_stat () && read_cmdline ();
Expand Down

0 comments on commit 536fc83

Please sign in to comment.