From: Arnaud Giersch Date: Tue, 15 Aug 2017 14:00:01 +0000 (+0200) Subject: Value is finally an integer. Change it to the smallest non-zero value. X-Git-Tag: v3_17~152^2~31 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/da354f0075d3dc4765ac52146c215604ff3c0f5f?hp=bb074ee52aecad7d1f6d089ff7cd78283673240b Value is finally an integer. Change it to the smallest non-zero value. --- diff --git a/examples/java/app/bittorrent/Common.java b/examples/java/app/bittorrent/Common.java index 0eb1eaa0e1..b7f7718606 100644 --- a/examples/java/app/bittorrent/Common.java +++ b/examples/java/app/bittorrent/Common.java @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2014, 2016. The SimGrid Team. +/* Copyright (c) 2006-2014, 2016-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -18,7 +18,7 @@ class Common { public static final int MESSAGE_SIZE = 1; /* Information message size */ public static final int MAXIMUM_PEERS = 50; /* Max number of peers sent by the tracker to clients */ public static final int TRACKER_QUERY_INTERVAL = 1000; /* Interval of time where the peer should send a request to the tracker */ - public static final double TRACKER_COMM_SIZE = 0.01; /* Communication size for a task to the tracker */ + public static final double TRACKER_COMM_SIZE = 1; /* Communication size for a task to the tracker */ public static final int GET_PEERS_TIMEOUT = 10000; /* Timeout for the get peers data */ public static final int TIMEOUT_MESSAGE = 10; public static final int TRACKER_RECEIVE_TIMEOUT = 10; diff --git a/examples/s4u/app-bittorrent/s4u_bittorrent.hpp b/examples/s4u/app-bittorrent/s4u_bittorrent.hpp index 4b02ab2f16..a3b296a2af 100644 --- a/examples/s4u/app-bittorrent/s4u_bittorrent.hpp +++ b/examples/s4u/app-bittorrent/s4u_bittorrent.hpp @@ -17,7 +17,7 @@ /** Interval of time where the peer should send a request to the tracker */ #define TRACKER_QUERY_INTERVAL 1000 /** Communication size for a task to the tracker */ -#define TRACKER_COMM_SIZE 0.01 +#define TRACKER_COMM_SIZE 1 #define GET_PEERS_TIMEOUT 10000 #define TIMEOUT_MESSAGE 10 #define TRACKER_RECEIVE_TIMEOUT 10 diff --git a/teshsuite/msg/app-bittorrent/bittorrent.h b/teshsuite/msg/app-bittorrent/bittorrent.h index 98fcbabf34..d88793811e 100644 --- a/teshsuite/msg/app-bittorrent/bittorrent.h +++ b/teshsuite/msg/app-bittorrent/bittorrent.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2014, 2016. The SimGrid Team. +/* Copyright (c) 2012-2014, 2016-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -14,7 +14,7 @@ /** Interval of time where the peer should send a request to the tracker */ #define TRACKER_QUERY_INTERVAL 1000 /** Communication size for a task to the tracker */ -#define TRACKER_COMM_SIZE 0.01 +#define TRACKER_COMM_SIZE 1 #define GET_PEERS_TIMEOUT 10000 #define TIMEOUT_MESSAGE 10 #define TRACKER_RECEIVE_TIMEOUT 10