Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 331 → Rev 332

/pkgnet/pkgnet.c
34,7 → 34,7
 
#include "net.h"
 
#define PVER "20210513"
#define PVER "20210514"
#define PDATE "2021"
 
#define HOSTADDR "svardos.osdn.io"
117,7 → 117,7
time_t lastactivity, lastprogressoutput = 0;
int headersdone = 0;
int httpcode = -1;
long flen = 0;
long flen = 0, lastflen = 0;
FILE *fd = NULL;
 
sock = net_connect(ipaddr, 80);
208,7 → 208,9
/* update progress once a sec */
if (lastprogressoutput != lastactivity) {
lastprogressoutput = lastactivity;
printf("%ld KiB\r", flen >> 10);
printf("%ld KiB (%ld KiB/s)\r", flen >> 10, (flen >> 10) - (lastflen >> 10));
lastflen = flen;
fflush(stdout); /* avoid console buffering */
}
/* update the bsd sum */
for (i = 0; i < byteread; i++) {
/pkgnet/pkgnet.lsm
1,3 → 1,3
version: 20210513
version: 20210514
description: pulls packages from the internet SvarDOS repository
license: MIT