Files of -1B in size

Archived discussion about features (predating the use of Bugzilla as a bug and feature tracker)

Moderator: Moderators

Locked
Lundis
Posts: 53
Joined: 2004-06-30 11:47

Files of -1B in size

Post by Lundis » 2004-10-17 11:28

I've seen files with the size -1B, I asked one what size it really had and it didn't exist, yet.
It seems it only exist in the filelist, why?

And I think that in some circumastances, they are next to a .dctmp file from the same download. Only from 0.4034

So is this a bug or an "undocumented feature"?

(my 100th post!)

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-10-17 11:29

As far as I am aware, -1 is sometimes shown for file lists because you don't yet know how big they are.
The world is coming to an end. Please log off.

DC++ Guide | Words

Guitarm
Forum Moderator
Posts: 385
Joined: 2004-01-18 15:38

Post by Guitarm » 2004-10-17 11:35

"Nothing really happens fast. Everything happens at such a rate that by the time it happens, it all seems normal."

Lundis
Posts: 53
Joined: 2004-06-30 11:47

Post by Lundis » 2004-10-17 12:09

If dc can't know how big they are, doesn't that mean they don't exist? And why are they in the filelist?

And I read that topic and I don't think it's the same. It was about the filelist being -1B, not files in the filelist.

PseudonympH
Forum Moderator
Posts: 366
Joined: 2004-03-06 02:46

Post by PseudonympH » 2004-10-18 16:43

I saw this happen a while ago. I added some files to the queue to download to a directory I had shared. I had the auto-add files to share when complete on, and they showed up in my filelist with size -1. It seemed to fix itself after a refresh, though. (Okay, I was actually using BCDC, but meh.)

paka
Posts: 45
Joined: 2004-12-27 19:20

Post by paka » 2005-01-10 20:33

I came across "-1" size with filelists not being downloaded because of no slots available. As I found in QueueManager.h, "-1" is the symbol that DC++ uses for the unknown size of a filelist before it starts to download. And the reason for the size being shown in the transfer window is (as I suppose) the fact that the user has no extra slots (small file/filelist) available (huge filelist or very slow upload), but DC++ shows the name and size of each file that failed to start and the user is online.

DeathStalker77
Posts: 38
Joined: 2003-11-15 22:10
Location: Hell

-1 Files vs FileLists

Post by DeathStalker77 » 2005-01-10 23:02

Ok, there is a difference here - I have seen TTH Searches show a FILESIZE as -1B, even though the TTH matches - I have not determined if there is any client version correlation or anything like that.

There is a DIFFERENT issue with the FILELIST showing as -1B - that normally happens when DC++ can't get a slot for the list - like if you are using v668 and trying to get a v305 (or older) filelist.

---DeathStalker

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2005-01-12 12:15

PseudonympH wrote: I had the auto-add files to share when complete on, and they showed up in my filelist with size -1.
Gentlemen, this is the answer.

Locked