Downoads stats page is back up

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 21 12:15:15 PDT 2015


On 10/21/2015 01:49 PM, Suliman wrote:
> On Wednesday, 21 October 2015 at 14:42:58 UTC, Andrei Alexandrescu wrote:
>> http://erdani.com/d/downloads.daily.png
>>
>> I ported my scripts to Linux. Will try to convert them to a cronjob so
>> we have reliable and regular updates.
>>
>> Andrei
>
> Andrei, could you give me sample of log, I would like to attempt to
> rewrite its to D with http://code.dlang.org/packages/plotd

Here's a log line:

ce556a00bebbc3d733d8020dea5aba468903ef9bdf612bac1ce24c4fa2618284 
downloads.dlang.org [02/Jan/2013:02:51:47 +0000] 10.196.44.18 
ce556a00bebbc3d733d8020dea5aba468903ef9bdf612bac1ce24c4fa2618284 
0AE4337E0627C8A7 REST.DELETE.OBJECT releases/2013/dmd_1.076-0_i386.deb 
"DELETE /downloads.dlang.org/releases/2013/dmd_1.076-0_i386.deb 
HTTP/1.1" 204 - - 3411276 38 - "-" "S3Console/0.4" -

After a bit of processing I distill it to this:

=======
2013-01-02 dmd_1.076-0_amd64.deb
2013-01-02 dmd_1.076-0_amd64.deb
2013-01-02 dmd-1.076-0.fedora.i386.rpm
2013-01-02 dmd-1.076-0.fedora.i386.rpm
2013-01-02 dmd-1.076-0.fedora.x86_64.rpm
2013-01-02 dmd-1.076-0.fedora.x86_64.rpm
2013-01-02 dmd_1.076-0_i386.deb
2013-01-02 dmd_1.076-0_i386.deb
2013-01-02 dmd-1.076-0.openSUSE.i386.rpm
2013-01-02 dmd-1.076-0.openSUSE.x86_64.rpm
2013-01-02 dmd-1.076-0-x86_64.pkg.tar.xz?acl
2013-01-02 dmd.1.076.zip
2013-01-02 dmd.1.076.zip
2013-01-02 dmd.1.076.zip
=======

i.e. date and file. After more processing I get the MA(28) in this format:

=======
1167.39 2015-10-17
1168.04 2015-10-18
1208.68 2015-10-19
1220.32 2015-10-20
=======

i.e. number and date. That's what I plot.


Andrei


More information about the Digitalmars-d mailing list