From aa8a920288e64fed3e7e095a4e4d465ba5ee1fd7 Mon Sep 17 00:00:00 2001 From: Hugo Peixoto Date: Sun, 30 Jul 2023 17:45:26 +0100 Subject: [PATCH] Add bytes and count per contact --- index.html.erb | 7 +++++++ main.rb | 3 +++ 2 files changed, 10 insertions(+) diff --git a/index.html.erb b/index.html.erb index cbeb379..bd3c705 100644 --- a/index.html.erb +++ b/index.html.erb @@ -88,6 +88,13 @@ $ PROCS=10 /caminho/para/o/saca-sapos download 1000 eu@exemplo.pt

Tamanho total estimado: <%= h bytes_downloaded / videos_downloaded * videos_known %>

Número de pessoas a descarregar vídeos: <%= users %>

+

Tamanho descarregado por cada pessoa:

+
    + <% downloads_per_user.each_with_index do |downloads, index| %> +
  1. <%= h downloads["size"] %> (<%= downloads["total"] %> vídeos)
  2. + <% end %> +
+