User(s) browsing this thread: 1 Guest(s)
|
[btpd] BTPD 0.15 - Lightweight and Fast Bittorrent
|
|
03-26-2009, 12:20 PM
(This post was last modified: 03-26-2009 12:44 PM by Allbest.)
|
|||
|
|||
|
RE: [btpd] BTPD 0.15 FINAL
shurup
(03-25-2009 10:19 PM)shurup Wrote: About 2Gb - that comes from btpd socket, I had 4.7Gb torent, I connect to btpd socket run get torrent command (tget) and in return I get 2147483647.Hello! I think you fail to bear smth in mind First of all you can try "btcli ... stat" command (btcli works via BTPD daemon with it's socket). Secondly I have already fixed these errors. At least for this code http://code.google.com/p/php-btpd/ ![]() Please see bencode.php library. A Function "decode_int" uses another "bad" PHP function "round". You can change line "$result['r'] = round($m[1]);" to a new one "$result['r'] = $m[1];" Please test it ![]() Additionally something like this is necessary in main code: $sess_up=(float)$val[self::SESSUP]; |
|||
|
03-26-2009, 07:18 PM
|
|||
|
|||
RE: [btpd] BTPD 0.15 FINAL
|
|||
|
03-26-2009, 07:20 PM
|
|||
|
|||
|
RE: [btpd] BTPD 0.15 FINAL
Could you post a bigger screenshot? This one is kinda small.
Regarding your red text, known issue. Fix is being worked on. Easy way of installing software on your NMT using just your mouse: NMT Community Software Installer |
|||
|
03-26-2009, 07:27 PM
(This post was last modified: 03-26-2009 07:34 PM by Snick66.)
|
|||
|
|||
RE: [btpd] BTPD 0.15 FINAL
(03-26-2009 07:20 PM)Ger Teunis Wrote: Could you post a bigger screenshot? This one is kinda small.sorry, my monitor 1680*1050 only... ![]() and, how about sort list function?... ![]() why files downloading in root of /share/Download ... not in subdir ?
|
|||
|
03-26-2009, 08:10 PM
(This post was last modified: 03-26-2009 08:40 PM by shurup.)
|
|||
|
|||
RE: [btpd] BTPD 0.15 FINAL
(03-26-2009 07:27 PM)Snick66 Wrote: why files downloading in root of /share/Download ... not in subdir ? Could you please send me that torrent file, I'll check, because multi-file torrents I tested last release on created sub-folder ok. Thanks. Allbest Wrote:Hello! I think you fail to bear smth in mind Don't be rude Allbest Wrote:Secondly I have already fixed these errors. At least for this code http://code.google.com/p/php-btpd/ Where did you fix them? Allbest Wrote:You can change line "$result['r'] = round($m[1]);" to a new one "$result['r'] = $m[1];" Ok, thanks, I kind of relied on the library being perfect since it was last udated in 2003 and used since. Wouldn't be "$result['r'] = is_numeric($m[1])?$m[1]:0;" more correct? Allbest Wrote:Additionally something like this is necessary in main code: $sess_up=(float)$val[self::SESSUP]; Don't use it. |
|||
|
03-26-2009, 08:30 PM
(This post was last modified: 03-26-2009 09:24 PM by Allbest.)
|
|||
|
|||
RE: [btpd] BTPD 0.15 FINAL
(03-26-2009 05:43 PM)shurup Wrote: Don't be rudeSorry, if it is really rude An English language is not a my native language. Therefore it is possible some misunderstanding (03-26-2009 05:43 PM)shurup Wrote: Where did you fix them?This version currently lives on the my computer. When I'll finish all my plans I'll publisize it... (03-26-2009 05:43 PM)shurup Wrote: Ok, thanks, I kind of relied on the library being perfect since it was last udated in 2003 and used since. Wouldn't be "$result['r'] = is_numeric($m[1])?$m[1]:0;" more correct?May be. In truth I am a newbie in PHP ![]() (03-26-2009 05:43 PM)shurup Wrote: Don't use it.At least this correction fixes an error! You should know better of course ![]() (03-26-2009 05:43 PM)shurup Wrote: <?php Are these results from POPCORN? I am not a PHP programmer but I see that here we deal with registry overflow and all correction I suggested fixes above-mentioned error ![]() Additionally what is a type of $m[1] in time of conversion via round?
|
|||
|
03-26-2009, 09:00 PM
|
|||
|
|||
|
RE: [btpd] BTPD 0.15 FINAL
Hahahaha
<?php echo 4294967296; ?> Output: 2147483647 That's waaaaay tooo cool than I can handle ![]() ![]()
|
|||
|
03-26-2009, 09:06 PM
|
|||
|
|||
|
RE: [btpd] BTPD 0.15 FINAL
Dast ist Fantastic
![]() ![]()
|
|||
|
03-26-2009, 09:40 PM
|
|||
|
|||
| RE: [btpd] BTPD 0.15 FINAL | |||
|
03-26-2009, 10:41 PM
(This post was last modified: 03-26-2009 11:04 PM by Ger Teunis.)
|
|||
|
|||
|
RE: [btpd] BTPD 0.15 FINAL
Done, updated the CSI release and merged last shurup's changes.
The php5-cgi doesn't have this issue. Like shurup suggested we need to migrate the webui someday from virtual hosting to php5 cgi. test.cgi Code: #!/mnt/syb8634/server/php5-cgireturns 4294967296 correctly. This is really too bad, had a lot of work in getting btpd running in nobody mode. ![]() . Arr. crap. That was not true Code: echo "<?php echo 4294967296; ?>" | /mnt/syb8634/server/php5-cgiresulted in Code: 2147483647shurup, did you get the result back as a correct 'string'? Perhaps we should just strip everything after the last dot and prevent any number manipulations on it. Easy way of installing software on your NMT using just your mouse: NMT Community Software Installer |
|||
|
03-26-2009, 11:58 PM
(This post was last modified: 03-27-2009 12:00 AM by Ger Teunis.)
|
|||
|
|||
|
RE: [btpd] BTPD 0.15 FINAL
Found the solution, convert it to float
<?php echo 5140206218.0/1024; ?> results in 5019732.6347656 and this can be round again
Easy way of installing software on your NMT using just your mouse: NMT Community Software Installer |
|||
|
03-27-2009, 07:49 AM
|
|||
|
|||
|
RE: [btpd] BTPD 0.15 FINAL
New version is out
It includes that 2GB fixes, enjoy. Easy way of installing software on your NMT using just your mouse: NMT Community Software Installer |
|||
3 users say Thank You to Ger Teunis for this post |
|
03-27-2009, 06:42 PM
|
|||
|
|||
| RE: [btpd] BTPD 0.15 FINAL | |||
|
03-27-2009, 09:26 PM
|
|||
|
|||
|
RE: [btpd] BTPD 0.15 final - Lightweight and Fast Bittorrent
0.15.3 - ok!
|
|||
|
03-28-2009, 12:25 AM
(This post was last modified: 03-28-2009 01:03 AM by avdim.)
|
|||
|
|||
|
RE: [btpd] BTPD 0.15 final - Lightweight and Fast Bittorrent
Some observations.
1. Still bad permissions with newly downloaded files (at least incomplete). User - nobody, group - 99, as a result can't delete with SMB. 2. Saving settings in UI don't start daemon - need reboot to start it. 3. Once I saw background in UI shifted so that white cloud was in the position where free space is displayed. As a result can't see anyting in this position. Can't reproduce it though. 4. Is it possible to make separate UI for PC, compact with all items clearly seen on one screen in case of many uploaded torrents? Or at least setting how many items display on single page? And saving selection between refreshes of the page as it was in original NMT UI. The best will be separate controlling applications like Transmission Remote GUI but I doubt it is possible without changing btpd code. |
|||
|
« Next Oldest | Next Newest »
|

Twitter
Facebook
NMT Wiki
Search
Member List
Help
[7. June 2013] Youporn available now



First of all you can try "btcli ... stat" command
(btcli works via BTPD daemon with it's socket). 
![[+]](images/collapse_collapsed.gif)
![[Image: 53123044.jpg]](http://img183.imageshack.us/img183/7201/53123044.jpg)



![[Image: 17251736.jpg]](http://img201.imageshack.us/img201/435/17251736.jpg)

An English language is not a my native language. Therefore it is possible some misunderstanding 

