Author: poeml Date: Sat Sep 25 04:51:14 2010 New Revision: 8160 URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8160&view=rev Log: mod_mirrorbrain: - Torrents now contain a "created by" key, indicating that MirrorBrain generated the torrent, and which version number it was. Fixing issue #65. Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mod_mirrorbrain/mod_mirrorbrain.c?rev=8160&r1=8159&r2=8160&view=diff ============================================================================== --- trunk/mod_mirrorbrain/mod_mirrorbrain.c (original) +++ trunk/mod_mirrorbrain/mod_mirrorbrain.c Sat Sep 25 04:51:14 2010 _at_@ -2826,6 +2826,10 @@ /* This is meant to be the creation time of the torrent, * but let's take the mtime of the file since we can generate the * torrent any time */ + ap_rprintf(r, "10:created by" + "%d:MirrorBrain/%s", + strlen("MirrorBrain/") + strlen(MOD_MIRRORBRAIN_VER), + MOD_MIRRORBRAIN_VER); ap_rprintf(r, "13:creation date" "i%se", apr_itoa(r->pool, apr_time_sec(r->finfo.mtime))); _______________________________________________ mirrorbrain-commits mailing list Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/ Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on Sat Sep 25 2010 - 02:51:18 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT