From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 1E9F96EC40; Tue, 8 Jun 2021 12:59:03 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 1E9F96EC40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1623146343; bh=E6yL7ZvMsIGnC/lRDCSrJWIKD+7KJtWqAWSzJvW4OaE=; h=Date:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=ckf+tDxS7PS5+rEFImI9NV9bzhBusMfR1NWRIoSln2BP6B0VQ6Cx8Ax853nfgz+Ut 5lTDTq8cjWNvEd76lCshIgxc2fPmVrYkzM9I0DIfLAhZV0PORL16s2gpVYoV9Lm2PR RRhDD5huX36bKT1uua0B3nue/ZTJgsaS4I7sy5/A= Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id DB4D36EC40 for ; Tue, 8 Jun 2021 12:59:01 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org DB4D36EC40 Received: by mail-lj1-f177.google.com with SMTP id s22so5793079ljg.5 for ; Tue, 08 Jun 2021 02:59:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=D9Eydnplzr74dhlKf9I9j0i1fiv9mVlyeCi5N02kVDI=; b=jUosu8GXmvtjTIRQq4CFEuUgpaZpfQKsM9FqpGn/SETfjZjiqHREA86VbtES1j38Wb bIc/KU6vN8vb+qpIEPaBUPMwjAGP3lgEw9Oq5VCTGnEZXMN442V3a7bq0GnLJWXbJzGO ihwt/76JbiS/QGOZVjO8RzX7UPWJ0yz1PyD8b/UrzOD+h5cttmNrAPHdzwrmoNc04vBj +NdIqQMg3BLH2bQ7MiGhQeJnshMzSl1Jn/JKvoWrsElH72UkSqyFeU6vH/MCp30Mkk+l aLZNEpjFg1vOJhbw6zlQ89HDmDWYs2e1UYu+OcYKx8O2gY64Ndc+7M9pmcEN9XHYaiP3 0C4g== X-Gm-Message-State: AOAM533jPi/OLouJ1qg/xEtVN65BHFWA6Kp1pMNAexMEQ3+eVvnKvkPx am8a8rIQXqOkdrBD+ysjgb0Gt8CZwMM= X-Google-Smtp-Source: ABdhPJwbSg3/vk5WSSkIrAZ+8qGw8n4S9b6k+Xqiz5wKwPXJtIXSw94sUJDZJDaQIQt67isuGnJMog== X-Received: by 2002:a2e:8397:: with SMTP id x23mr17799639ljg.228.1623146340821; Tue, 08 Jun 2021 02:59:00 -0700 (PDT) Received: from grain.localdomain ([5.18.171.94]) by smtp.gmail.com with ESMTPSA id v9sm2190993ljv.131.2021.06.08.02.58.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 02:58:59 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id B9EEE5A0042; Tue, 8 Jun 2021 12:58:58 +0300 (MSK) Date: Tue, 8 Jun 2021 12:58:58 +0300 To: Vladislav Shpilevoy Cc: tml Message-ID: References: <20210607155519.109626-1-gorcunov@gmail.com> <20210607155519.109626-3-gorcunov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.0.7 (2021-05-04) Subject: Re: [Tarantool-patches] [PATCH v8 2/2] relay: provide information about downstream lag X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Cyrill Gorcunov via Tarantool-patches Reply-To: Cyrill Gorcunov Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" On Tue, Jun 08, 2021 at 11:40:33AM +0300, Cyrill Gorcunov wrote: > > > > 4. But it is not 1 second. usleep(1000) means 1 millisecond, and it > > No, usleep(1000) means exactly 1 second, this system call works with > microseconds, I think you misread it with nanosleep(). Silly me, not sure why but I always confused with micro/milli prefixes :)