mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-03 13:48:52 +00:00
bug fix
This commit is contained in:
parent
235f20813d
commit
9e440fd5e6
2 changed files with 5 additions and 1 deletions
|
@ -290,6 +290,10 @@ namespace v2rayN.Forms
|
||||||
bool lastEnableStatistics = config.enableStatistics;
|
bool lastEnableStatistics = config.enableStatistics;
|
||||||
config.enableStatistics = chkEnableStatistics.Checked;
|
config.enableStatistics = chkEnableStatistics.Checked;
|
||||||
config.statisticsFreshRate = Convert.ToInt32(numStatisticsFreshRate.Value);
|
config.statisticsFreshRate = Convert.ToInt32(numStatisticsFreshRate.Value);
|
||||||
|
if (config.statisticsFreshRate > 100 || config.statisticsFreshRate < 1)
|
||||||
|
{
|
||||||
|
config.statisticsFreshRate = 1;
|
||||||
|
}
|
||||||
|
|
||||||
config.keepOlderDedupl = chkKeepOlderDedupl.Checked;
|
config.keepOlderDedupl = chkKeepOlderDedupl.Checked;
|
||||||
|
|
||||||
|
|
|
@ -156,7 +156,7 @@ namespace v2rayN.Handler
|
||||||
{
|
{
|
||||||
config.groupItem = new List<GroupItem>();
|
config.groupItem = new List<GroupItem>();
|
||||||
}
|
}
|
||||||
if (config.statisticsFreshRate > 100)
|
if (config.statisticsFreshRate > 100 || config.statisticsFreshRate < 1)
|
||||||
{
|
{
|
||||||
config.statisticsFreshRate = 1;
|
config.statisticsFreshRate = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue