featured show bandwidth in log form's title
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
using System.IO;
|
||||
using Shadowsocks.Model;
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Net.Sockets;
|
||||
|
||||
using Shadowsocks.Controller.Strategy;
|
||||
using System.Net;
|
||||
using Shadowsocks.Util;
|
||||
using Shadowsocks.Model;
|
||||
using Shadowsocks.Properties;
|
||||
using Shadowsocks.Util;
|
||||
|
||||
namespace Shadowsocks.Controller
|
||||
{
|
||||
@@ -30,6 +31,9 @@ namespace Shadowsocks.Controller
|
||||
public AvailabilityStatistics availabilityStatistics { get; private set; }
|
||||
public StatisticsStrategyConfiguration StatisticsConfiguration { get; private set; }
|
||||
|
||||
public long inboundCounter = 0;
|
||||
public long outboundCounter = 0;
|
||||
|
||||
private bool stopped = false;
|
||||
|
||||
private bool _systemProxyIsDirty = false;
|
||||
@@ -62,7 +66,6 @@ namespace Shadowsocks.Controller
|
||||
StartReleasingMemory();
|
||||
}
|
||||
|
||||
|
||||
public void Start()
|
||||
{
|
||||
Reload();
|
||||
@@ -302,6 +305,16 @@ namespace Shadowsocks.Controller
|
||||
Configuration.Save(_config);
|
||||
}
|
||||
|
||||
public void UpdateInboundCounter(long n)
|
||||
{
|
||||
inboundCounter += n;
|
||||
}
|
||||
|
||||
public void UpdateOutboundCounter(long n)
|
||||
{
|
||||
outboundCounter += n;
|
||||
}
|
||||
|
||||
protected void Reload()
|
||||
{
|
||||
// some logic in configuration updated the config when saving, we need to read it again
|
||||
|
||||
Reference in New Issue
Block a user