]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Update comment to service_process.total_count
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 16 Jan 2020 13:03:28 +0000 (15:03 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 14 Jan 2021 11:16:54 +0000 (11:16 +0000)
It's not an exact value. Making it exact would require changing the IPC
protocol to master, which isn't worth it just for this.

src/master/service-process.h

index d35390a9ca3909deb2676ee33873e00594f56b8f..3d55a685c81e9ef9810d9647e66ba7f2179c3b81 100644 (file)
@@ -12,7 +12,11 @@ struct service_process {
 
        /* number of new connections process is currently accepting */
        unsigned int available_count;
-       /* number of connections process has ever accepted */
+       /* Approximate number of connections process has ever accepted.
+          This isn't exact, because its calculation is based on
+          available_count updates, which aren't done on every single
+          connection/disconnection. With a busy process it might be a lot
+          smaller than the correct value. */
        unsigned int total_count;
 
        /* time when process started idling, or 0 if we're not idling */