Delivery-Date: Sun, 29 Mar 2015 18:57:53 -0400
Return-Path: <tor-talk-bounces@lists.torproject.org>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on moria.seul.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	RCVD_IN_DNSWL_MED,T_DKIM_INVALID,T_RP_MATCHES_RCVD autolearn=ham version=3.3.1
X-Original-To: archiver@seul.org
Delivered-To: archiver@seul.org
Received: from eugeni.torproject.org (eugeni.torproject.org [38.229.72.13])
	(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by khazad-dum.seul.org (Postfix) with ESMTPS id CC7981E03C7
	for <archiver@seul.org>; Sun, 29 Mar 2015 18:57:51 -0400 (EDT)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id 272BB3446C;
	Sun, 29 Mar 2015 22:57:44 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id 96F7134468
 for <tor-talk@lists.torproject.org>; Sun, 29 Mar 2015 22:57:40 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at 
Received: from eugeni.torproject.org ([127.0.0.1])
 by localhost (eugeni.torproject.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id O5yUnPmu6EKI for <tor-talk@lists.torproject.org>;
 Sun, 29 Mar 2015 22:57:40 +0000 (UTC)
Received: from mail.headstrong.de (mail.headstrong.de
 [IPv6:2a02:180:a:25:2::1])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by eugeni.torproject.org (Postfix) with ESMTPS id 6AE5534466
 for <tor-talk@lists.torproject.org>; Sun, 29 Mar 2015 22:57:40 +0000 (UTC)
Received: from localhost (localhost.localdomain [127.0.0.1])
 by mail.headstrong.de (Postfix) with ESMTP id D765B1C0018A
 for <tor-talk@lists.torproject.org>; Mon, 30 Mar 2015 00:57:34 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=headstrong.de;
 h=content-transfer-encoding:content-type:content-type
 :in-reply-to:references:subject:subject:mime-version:from:from
 :date:date:message-id:received; s=mail; t=1427669851; x=
 1429484252; bh=gP6p80T3Fihu2E6voJP3bY1lKN+URphlQ0oq68LogN0=; b=G
 xOggFIVuZF7DNnSglTiHSgpxvEs2a0mWSedzcRMyBr8zG7wghuqFevVh8KLTktug
 ZC99/gEGnV8G7enFJUxY4esIytUz0MLfdUpMsA9pCJPkcc+JSi2q2zxst35osM7A
 zq+2Ypu0PpAT2L7ou6xQTYEq48qap9MonRzU+8AOuc=
X-Virus-Scanned: Debian amavisd-new at mail.headstrong.de
Received: from mail.headstrong.de ([127.0.0.1])
 by localhost (mail.headstrong.de [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id 36iJhhYtZc24 for <tor-talk@lists.torproject.org>;
 Mon, 30 Mar 2015 00:57:31 +0200 (CEST)
Message-ID: <5518835A.8050707@torservers.net>
Date: Mon, 30 Mar 2015 00:57:30 +0200
From: Moritz Bartl <moritz@torservers.net>
MIME-Version: 1.0
To: tor-talk@lists.torproject.org
References: <CALRdebwtsHCr2HrTga_D3sb=Vi1MBUp2Q+Ooy++3idpGtNitiw@mail.gmail.com>
 <55182327.9010508@torproject.org>
In-Reply-To: <55182327.9010508@torproject.org>
Subject: Re: [tor-talk] Why is there a huge gap between Total BW retrieved
 by Stem, Total shown on Tor Metrics and in http://torstatus.blutmagie.de/?
X-BeenThere: tor-talk@lists.torproject.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: tor-talk@lists.torproject.org
List-Id: "all discussion about theory, design,
 and development of Onion Routing" <tor-talk.lists.torproject.org>
List-Unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=unsubscribe>
List-Archive: <http://lists.torproject.org/pipermail/tor-talk/>
List-Post: <mailto:tor-talk@lists.torproject.org>
List-Help: <mailto:tor-talk-request@lists.torproject.org?subject=help>
List-Subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: tor-talk-bounces@lists.torproject.org
Sender: "tor-talk" <tor-talk-bounces@lists.torproject.org>

On 03/29/2015 06:07 PM, Karsten Loesing wrote:
> Relays report a bandwidth history in their extra-info descriptors.
> You'll have to sum up all values for a given day to obtain the daily
> total and compute the daily average.  But beware of duplicates.  I'm
> afraid this is not exactly trivial to compute using Stem.

I want to stress this point, because I've seen that mistake in a number
of scripts meant to calculate the average speed of a relay. You can't
simply add up all the values from all descriptors of a day and divide by
24! One of the scripts that I think does it correctly is
https://github.com/torservers/exitstats/ by waaaaargh.

-- 
Moritz Bartl
https://www.torservers.net/
-- 
tor-talk mailing list - tor-talk@lists.torproject.org
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk

