Commit 7a666f3f authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

fix the instance filter

unit names always have a type suffix, in this case the instance is the
prefix (so we can startwith filter on) meaning we need to add the suffix
manually for the builtin matching tech
parent 44879708
......@@ -101,7 +101,7 @@ public:
// Additionally we'll filter by chrono proximity, iids that are too far in the past will be discarded.
// This is because iid on its own isn't necessarily unique in the event that it wraps around whatever
// integer limit it has.
if (sd_journal_add_match(context.get(), qPrintable(QStringLiteral("_SYSTEMD_UNIT=%1").arg(instanceFilter)), 0) != 0) {
if (sd_journal_add_match(context.get(), qPrintable(QStringLiteral("_SYSTEMD_UNIT=%1.service").arg(instanceFilter)), 0) != 0) {
Q_EMIT error(QStringLiteral("Failed to install unit match"));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment