Skip to content
Snippets Groups Projects
Commit 2ed9a146 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Add CPS @-code which is used to display the current download CPS

In a minute, this CPS value will be of more use since it'll be reflective of the user's actual download rate (in characters/bytes per second) instead of just some randomly-chosen numeric constant.
parent 5971e10f
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -460,6 +460,11 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, int* pmode, bool
return(str);
}
if(!strcmp(sp,"CPS")) {
safe_snprintf(str,maxlen,"%u",cur_cps);
return(str);
}
if(!strcmp(sp,"COLS")) {
safe_snprintf(str,maxlen,"%u",cols);
return(str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment