some fixes

This commit is contained in:
2026-04-10 14:51:40 +03:00
parent 987cf022fe
commit af33a036c8
6 changed files with 92 additions and 48 deletions

View File

@@ -119,6 +119,7 @@ static void showdata(sl_sock_t *client){
sl_sock_sendbyte(client, '\n');
++nsum; Tsum += v.time;
}
DBG("nsum=%d", nsum);
if(nsum > 0){
oldest = (time_t)(Tsum / nsum);
if(0 < format_msrmttm(oldest, buf, FULL_LEN)){ // send mean measuring time