diff --git a/exec/load/cnfdefs.js b/exec/load/cnfdefs.js index ea32d9837eadff5d510d5e204d942a4cf703bed4..39913316e6ba1ede2ac2c3c6611f94643b48fa51 100644 --- a/exec/load/cnfdefs.js +++ b/exec/load/cnfdefs.js @@ -393,8 +393,8 @@ struct.dir_t={ sort: {bytes:1, type:"int"}, exempt_ars: {bytes:LEN_ARSTR+1, type:"str"}, max_age: {bytes:UINT16_T, type:"int"}, - upload_pct: {bytes:UINT16_T, type:"int"}, - download_pct: {bytes:UINT16_T, type:"int"}, + upload_credit_pct: {bytes:UINT16_T, type:"int"}, + download_credit_pct: {bytes:UINT16_T, type:"int"}, __PADDING__: {bytes:49} }; struct.lib_t={ @@ -485,8 +485,8 @@ struct.file={ max_batdn: {bytes:UINT16_T, type:"int"}, max_userxfer: {bytes:UINT16_T, type:"int"}, __PADDING1__: {bytes:4}, - cdt_up_pct: {bytes:UINT16_T, type:"int"}, - cdt_dn_pct: {bytes:UINT16_T, type:"int"}, + upload_credit_pct: {bytes:UINT16_T, type:"int"}, + download_credit_pct: {bytes:UINT16_T, type:"int"}, __PADDING2__: {bytes:68}, leech_pct: {bytes:UINT16_T, type:"int"}, leech_sec: {bytes:UINT16_T, type:"int"}, diff --git a/src/sbbs3/scfglib2.c b/src/sbbs3/scfglib2.c index 89011d4ddabdc1f39de408a338fea3970d5fe2b5..397213ab815f49b173c6c2fffd8266a738c160d7 100644 --- a/src/sbbs3/scfglib2.c +++ b/src/sbbs3/scfglib2.c @@ -49,8 +49,8 @@ BOOL read_file_cfg(scfg_t* cfg, char* error, size_t maxerrlen) cfg->max_batup = iniGetShortInt(ini, ROOT_SECTION, "max_batup", 0); cfg->max_batdn = iniGetShortInt(ini, ROOT_SECTION, "max_batdn", 0); cfg->max_userxfer = iniGetShortInt(ini, ROOT_SECTION, "max_userxfer", 0); - cfg->cdt_up_pct = iniGetShortInt(ini, ROOT_SECTION, "cdt_up_pct", 0); - cfg->cdt_dn_pct = iniGetShortInt(ini, ROOT_SECTION, "cdt_dn_pct", 0); + cfg->cdt_up_pct = iniGetShortInt(ini, ROOT_SECTION, "upload_credit_pct", 0); + cfg->cdt_dn_pct = iniGetShortInt(ini, ROOT_SECTION, "download_credit_pct", 0); cfg->leech_pct = iniGetShortInt(ini, ROOT_SECTION, "leech_pct", 0); cfg->leech_sec = iniGetShortInt(ini, ROOT_SECTION, "leech_sec", 0); cfg->file_misc = iniGetInt32(ini, ROOT_SECTION, "settings", 0); @@ -328,8 +328,8 @@ BOOL read_file_cfg(scfg_t* cfg, char* error, size_t maxerrlen) arstr(NULL, cfg->dir[i]->ex_arstr, cfg, cfg->dir[i]->ex_ar); cfg->dir[i]->maxage = iniGetShortInt(section, NULL, "maxage", 0); - cfg->dir[i]->up_pct = iniGetShortInt(section, NULL, "up_pct", 0); - cfg->dir[i]->dn_pct = iniGetShortInt(section, NULL, "dn_pct", 0); + cfg->dir[i]->up_pct = iniGetShortInt(section, NULL, "upload_credit_pct", 0); + cfg->dir[i]->dn_pct = iniGetShortInt(section, NULL, "download_credit_pct", 0); SAFECOPY(cfg->dir[i]->area_tag, iniGetString(section, NULL, "area_tag", "", value)); ++cfg->total_dirs; } diff --git a/src/sbbs3/scfgsave.c b/src/sbbs3/scfgsave.c index ca8ab7c9f15ef39546dca8ec01591c6570ca910a..0abd913dd6bb7a31be1ed39fb8a76f7ccf736c82 100644 --- a/src/sbbs3/scfgsave.c +++ b/src/sbbs3/scfgsave.c @@ -581,8 +581,8 @@ BOOL write_file_cfg(scfg_t* cfg, int backup_level) iniSetShortInt(&ini, ROOT_SECTION, "max_batup", cfg->max_batup, NULL); iniSetShortInt(&ini, ROOT_SECTION, "max_batdn", cfg->max_batdn, NULL); iniSetShortInt(&ini, ROOT_SECTION, "max_userxfer" ,cfg->max_userxfer, NULL); - iniSetShortInt(&ini, ROOT_SECTION, "cdt_up_pct", cfg->cdt_up_pct, NULL); - iniSetShortInt(&ini, ROOT_SECTION, "cdt_dn_pct", cfg->cdt_dn_pct, NULL); + iniSetShortInt(&ini, ROOT_SECTION, "upload_credit_pct", cfg->cdt_up_pct, NULL); + iniSetShortInt(&ini, ROOT_SECTION, "download_credit_pct", cfg->cdt_dn_pct, NULL); iniSetShortInt(&ini, ROOT_SECTION, "leech_pct", cfg->leech_pct, NULL); iniSetShortInt(&ini, ROOT_SECTION, "leech_sec", cfg->leech_sec, NULL); iniSetHexInt(&ini, ROOT_SECTION, "settings", cfg->file_misc, NULL); @@ -745,8 +745,8 @@ BOOL write_file_cfg(scfg_t* cfg, int backup_level) iniSetShortInt(§ion, name, "sort", cfg->dir[i]->sort, NULL); iniSetString(§ion, name, "exempt_ars", cfg->dir[i]->ex_arstr, NULL); iniSetShortInt(§ion, name, "maxage", cfg->dir[i]->maxage, NULL); - iniSetShortInt(§ion, name, "up_pct", cfg->dir[i]->up_pct, NULL); - iniSetShortInt(§ion, name, "dn_pct", cfg->dir[i]->dn_pct, NULL); + iniSetShortInt(§ion, name, "upload_credit_pct", cfg->dir[i]->up_pct, NULL); + iniSetShortInt(§ion, name, "download_credit_pct", cfg->dir[i]->dn_pct, NULL); iniSetString(§ion, name, "area_tag", cfg->dir[i]->area_tag, NULL); strListMerge(&ini, section); free(section);