From 4433fffbdec06241dcbb57c52c26d15bc4007e28 Mon Sep 17 00:00:00 2001 From: Martin Kampas Date: Wed, 21 Feb 2018 11:31:04 +0100 Subject: Allow to limit the number of watched directories Consider starting bench e.g. in home directory. Different limitation on the number of watches applies depending on the platform. On linux the limit is per-user. Change-Id: If7a8cf6e3caa47ebaeb8cbd1fdc28d34d4d330b9 Reviewed-by: Svetlana Abramenkova --- src/bench/options.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/bench/options.h') diff --git a/src/bench/options.h b/src/bench/options.h index e7c84bd..a0ab44f 100644 --- a/src/bench/options.h +++ b/src/bench/options.h @@ -86,6 +86,9 @@ public: QStringList hostsToProbe() const; void setHostsToProbe(const QStringList &hostNames); + int maximumWatches() const; + void setMaximumWatches(int maximumWatches); + private: bool m_noRemote; bool m_remoteOnly; @@ -98,5 +101,6 @@ private: QList m_hostsToAdd; QStringList m_hostsToRemove; QStringList m_hostsToProbe; + int m_maximumWatches; }; -- cgit v1.2.3