aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-04-10 17:06:19 +0200
committerChristian Grothoff <christian@grothoff.org>2019-04-10 17:06:19 +0200
commitb3ccc610751cfe065f1668634ff612461d80b02c (patch)
treef2fe2d2477ec1489b21ebaed54b94f712008f344 /src/include
parent2bbb2934dbbe471640c67c3bc672120f35708fd1 (diff)
downloadgnunet-b3ccc610751cfe065f1668634ff612461d80b02c.tar.gz
gnunet-b3ccc610751cfe065f1668634ff612461d80b02c.zip
start to implement validation logic
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_time_lib.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/include/gnunet_time_lib.h b/src/include/gnunet_time_lib.h
index 93e6cd00f..482ae52d8 100644
--- a/src/include/gnunet_time_lib.h
+++ b/src/include/gnunet_time_lib.h
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -368,7 +368,7 @@ GNUNET_TIME_absolute_get_remaining (struct GNUNET_TIME_Absolute future);
368 */ 368 */
369struct GNUNET_TIME_Relative 369struct GNUNET_TIME_Relative
370GNUNET_TIME_calculate_eta (struct GNUNET_TIME_Absolute start, 370GNUNET_TIME_calculate_eta (struct GNUNET_TIME_Absolute start,
371 uint64_t finished, 371 uint64_t finished,
372 uint64_t total); 372 uint64_t total);
373 373
374 374
@@ -579,15 +579,15 @@ struct GNUNET_CONFIGURATION_Handle;
579 * increasing. Guards against systems without an RTC or 579 * increasing. Guards against systems without an RTC or
580 * clocks running backwards and other nasty surprises. Does 580 * clocks running backwards and other nasty surprises. Does
581 * not guarantee that the returned time is near the current 581 * not guarantee that the returned time is near the current
582 * time returned by #GNUNET_TIME_absolute_get(). Two 582 * time returned by #GNUNET_TIME_absolute_get(). Two
583 * subsequent calls (within a short time period) may return the 583 * subsequent calls (within a short time period) may return the
584 * same value. Persists the last returned time on disk to 584 * same value. Persists the last returned time on disk to
585 * ensure that time never goes backwards. As a result, the 585 * ensure that time never goes backwards. As a result, the
586 * resulting value can be used to check if a message is the 586 * resulting value can be used to check if a message is the
587 * "most recent" value and replays of older messages (from 587 * "most recent" value and replays of older messages (from
588 * the same origin) would be discarded. 588 * the same origin) would be discarded.
589 * 589 *
590 * @param cfg configuration, used to determine where to 590 * @param cfg configuration, used to determine where to
591 * store the time; user can also insist RTC is working 591 * store the time; user can also insist RTC is working
592 * nicely and disable the feature 592 * nicely and disable the feature
593 * @return monotonically increasing time 593 * @return monotonically increasing time