From aa7fdb1f0fb8e770eea881faddf33392067113bb Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 13 May 2015 00:11:44 +0000
Subject: [PATCH] If the file's 'timetodl' (transfer time) value is 0, don't
 display the transfer time (e.g. "00:00:00"). Synchronet v3 has always forced
 this value to 0 since it's inaccurate over TCP/IP with the current hard-coded
 "CPS" rate of 3000 (i.e. bytes-per-second).

---
 src/sbbs3/file.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/file.cpp b/src/sbbs3/file.cpp
index 165692aa52..064ea45ce8 100644
--- a/src/sbbs3/file.cpp
+++ b/src/sbbs3/file.cpp
@@ -8,7 +8,7 @@
  * @format.tab-size 4		(Plain Text/Source Code File Header)			*
  * @format.use-tabs true	(see http://www.synchro.net/ptsc_hdr.html)		*
  *																			*
- * Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html		*
+ * Copyright Rob Swindell - http://www.synchro.net/copyright.html			*
  *																			*
  * This program is free software; you can redistribute it and/or			*
  * modify it under the terms of the GNU General Public License				*
@@ -75,7 +75,7 @@ void sbbs_t::fileinfo(file_t* f)
 	bprintf(text[FiDateUled],timestr(f->dateuled));
 	bprintf(text[FiDateDled],f->datedled ? timestr(f->datedled) : "Never");
 	bprintf(text[FiTimesDled],f->timesdled);
-	if(f->size!=-1L)
+	if(f->size>0 && f->timetodl>0)
 		bprintf(text[FiTransferTime],sectostr(f->timetodl,tmp));
 	if(f->altpath) {
 		if(f->altpath<=cfg.altpaths) {
-- 
GitLab