Re: SimpleProgress does not show filesize

Matthew Toseland <toad-EI5O+8PHWbJeeLb3ft/[email protected]>
Newsgroups gmane.network.freenet.technical
Message-ID <[email protected]>
On Mon, Feb 12, 2007 at 08:19:00PM +0100, bbackde-gM/[email protected] wrote:
> A question on this: do I have to compute the file size from the block
> count * 32kb, or can I use the true file size? where is the true file
> size stored? The node have to know it to finally truncate the
> resulting file to the correct length, true?

The final file size is known... but only if we are fetching the final
layer of the pyramid. FetchException has fields for the final size and
MIME type and whether they are final. Find the constructor which sets
these and have a look at the callers, and you should be able to find
what you need.
> 
> On 2/10/07, Florent Daignière (NextGen$) <[email protected]> wrote:
> > * bbackde-gM/[email protected] <bbackde-gM/[email protected]> [2007-02-10 19:09:58]:
> >
> > > While I'm on the FCP2 code I will add a new parameter to the
> > > SimpleProgress for a GET that returns the computed filesize when a GET
> > > is finalized.
> > >
> > > Ok?
> >
> > Well, if you do it, it's fine by me :)
> >
> > >
> > > On 1/4/07, Florent Daignière (NextGen$) <[email protected]> wrote:
> > > >* bbackde-gM/[email protected] <bbackde-gM/[email protected]> [2006-12-29 22:09:04]:
> > > >
> > > >> If a SimpleProgress message is sent with Finalized=true, does'nt the
> > > >> node know the final filesize at this time? I assume yes, and I want
> > > >> that the size is sent in the SimpleProgress message if it is known.
> > > >
> > > >And I *want* you to fill in a ticket on the bug tracking system using the
> > > >category "wishlist or feature" :p
> > > >
> > > >More seriously speaking ... they are more urgent matters to be addressed
> > > >; will do but not now.
> > > >
> > > >NextGen$
> >
> _______________________________________________
> Tech mailing list
> [email protected]
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/tech
>

_______________________________________________
Tech mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/tech
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF0mnoA9rUluQ9pFARAuosAKCJC3/Cgev/IcEWOCbDKbaY5GRcOgCfZZ4h
0GsrQi3eOfzscU/jPPLsIKw=
=17Yw
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.