noisyfox
0266ad9d59
Remove redundant lock.
Lock is evil.
This will actually affect the accuracy of GetDelta because
inboundDelta and outboundDelta may be calculated based on
the data collected at different time (eg. UpdateOutbound
get called before Interlocked.Read(ref _outbound)).
But that's not a problem. We can tolerate this little
inaccuracy. Besides, the _inbound, _outbound, _lastInbound
and _lastOutbound will be totally good because we use Interlocked.
8 years ago
noisyfox
65d72fdfed
New approach to record and calculate inbound/outbound speed.
Use lock to sync between threads.This should fix issue #679
and other same issue.
Fix a bug in UpdateSpeed() that only save the first xxxSpeedRecord.
8 years ago
Syrone Wong
6a8a09983e
Merge fixes from @GangZhuo , close #478 ( #638 )
Squashed commit of the following:
commit e280c2385c
Merge: 579039f
87aa9eb
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Wed Mar 16 04:02:27 2016 -0400
Merge remote-tracking branch 'origin/master'
commit 579039fe40
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 21:45:23 2016 +0800
log unhandle exception
commit 8d863f1d5f
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 21:44:54 2016 +0800
fix Availability Statistics
commit b3ce1c698a
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 21:07:54 2016 +0800
tiny refactor
commit 0f7d39e27e
Merge: bd7078a
b01aced
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 20:02:58 2016 +0800
Merge remote-tracking branch 'origin/master'
commit bd7078aa4f
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 20:01:58 2016 +0800
tiny refactor
commit 49adb95b6e
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 03:44:26 2016 -0500
log more Ping information for debug
commit 2aa0620ddd
Author: Gang Zhuo <gang.zhuo@gmail.com>
Date: Fri Mar 4 03:04:10 2016 -0500
reduce 3rd packages
[solve conflicts and squash to make history clean]
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
9 years ago
Gang Zhuo
4325b7f6f9
fix https://github.com/shadowsocks/shadowsocks-windows/issues/466
9 years ago
icylogic
a99fef37d3
track multiple servers at the same time
Correct AvailabilityStatistics's behavior under special strategies like "LoadBalance", which may switch the server several times in a short period.
9 years ago
icylogic
7914d704d9
finish basic calculation
9 years ago
icylogic
e0e0f646b0
fix the chart
9 years ago
icylogic
3b7cbf8020
fix weird logic for reading files.
9 years ago
icylogic
2086b5900d
Merge remote-tracking branch 'upstream/master' into feature/statistics_ui
# Conflicts:
# shadowsocks-csharp/Controller/Service/AvailabilityStatistics.cs
# shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs
# shadowsocks-csharp/View/StatisticsStrategyConfigurationForm.cs
9 years ago
Licshee
281dfe028a
.
9 years ago
icylogic
06d60f54bc
redesign statistics form
9 years ago
icylogic
bec1f808b3
add an option for Ping tests (disabled by default) and improve the readability of the code
9 years ago
icylogic
586caab7c4
follow CA1001: Types that own disposable fields should be disposable
https://msdn.microsoft.com/library/ms182172.aspx
9 years ago
icylogic
ce67551d31
migrate to record data model
9 years ago
icylogic
aef4b86c91
refactor AvailabilityStatistics to singleton
9 years ago
icylogic
6df589facf
fix error caused by type migration
9 years ago
icylogic
e0ee791e3b
Merge remote-tracking branch 'upstream/master' into feature/statistics_ui
9 years ago
icylogic
b735d59d8a
remove ISP/Geolocation detection
9 years ago
icylogic
7599704d1f
add speed to statistics
9 years ago
icylogic
5b895efdba
Merge branch 'master' into feature/statistics_ui
9 years ago
Simon Dong
5a0a35a839
fix crashed when dns can't resolve server ip address.
9 years ago
Simon Dong
0b73017250
create statistics file if not exists.
9 years ago
kimw
c2095b5ad7
migrated SimpleJson => Newtonesoft.Json, and of cause removed SimpleJson source files.
9 years ago
kimw
64390d45ac
GetTempPath() now supports: return a full path with filename combined which pointed to the temporary directory
9 years ago
kimw
0b16ef7445
Merge upstream
# Conflicts:
# README.md
# shadowsocks-csharp/Controller/Service/AvailabilityStatistics.cs
# shadowsocks-csharp/Controller/Service/PACServer.cs
# shadowsocks-csharp/Controller/Strategy/SimplyChooseByStatisticsStrategy.cs
# shadowsocks-csharp/Data/cn.txt
# shadowsocks-csharp/Model/Configuration.cs
# shadowsocks-csharp/Model/LogViewerConfig.cs
# shadowsocks-csharp/View/LogForm.Designer.cs
# shadowsocks-csharp/View/LogForm.cs
# shadowsocks-csharp/View/MenuViewController.cs
9 years ago
Kaguya
87c5b23e21
https://github.com/shadowsocks/shadowsocks-windows/issues/399
9 years ago
icylogic
6bccd24e81
Catch All Exception for GetStringAsync
9 years ago
icylogic
6550c04650
escape comma for csv;
prevent a bug
9 years ago
icylogic
b9632f8636
basic statistics form UI
9 years ago
icylogic
3f56deb418
init chart
9 years ago
icylogic
6c7f33dec3
ping asynchronously to accelerate evaluating
9 years ago
icylogic
107bc99282
move loading and filtering jobs to statistics service
9 years ago
kimw
0a733c61b8
fixed: standardize Logging usage
1. Add Logging.Info()
2. Console.WriteLine() -> Logging.Info()
3. Console.WriteLine() in exceptions -> Logging.LogUsefulException()
9 years ago
icylogic
e45dd8b695
core functions finished
9 years ago
icylogic
a30cb166a5
Merge branch 'hotfix/more_clear_log' into develop
# Conflicts:
# shadowsocks-csharp/Controller/Service/AvailabilityStatistics.cs
9 years ago
icylogic
879163dc2b
Add more clear log
9 years ago
icylogic
aa2334c9fd
Merge branch 'master' into feature/statistics_ui
# Conflicts:
# shadowsocks-csharp/Controller/Service/AvailabilityStatistics.cs
# shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs
# shadowsocks-csharp/View/LogForm.Designer.cs
# shadowsocks-csharp/View/MenuViewController.cs
9 years ago
clowwindy
c767f55b3c
add portable mode
9 years ago
icylogic
7978817492
fixed #280 , log "No such host is known" and other PingException
9 years ago
icylogic
99baeb89f3
log "No such host is known" exception
9 years ago
icylogic
34ab170e4c
fix serveral minor bugs
9 years ago
icylogic
c08463710e
feature: get ISP
9 years ago
icylogic
e15ba8dc8b
Refactor code with syntactic sugars in c#.
10 years ago
icylogic
26557bfdc3
adjust interval of statistics
10 years ago
icylogic
0e4f0f17cd
Add availability statistics service and a simple strategy
Strategy: Simply Choose By Statistics
10 years ago