#!/usr/bin/env bash

rm /mnt/ramdisk/*.bin

# yyyy-mm-dd
YMD=$(date +%Y-%m-%d)

/usr/bin/aria2c -x 4 --file-allocation=none -d /mnt/ramdisk http://files.isvery.moe/30mb.bin >> $HOME/speed-results/$YMD.txt

scp $HOME/speed-results/$YMD.txt bl:/var/www/fileserve/speed-results
