mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 02:12:25 +08:00
optimize<AutoFetch>: reduce CPU usage
This commit is contained in:
@@ -81,6 +81,8 @@ namespace SourceGit.Commands {
|
||||
job.Cmd.Exec();
|
||||
job.NextRunTimepoint = DateTime.Now.AddSeconds(_fetchInterval);
|
||||
}
|
||||
|
||||
Thread.Sleep(2000);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ namespace SourceGit.Views {
|
||||
|
||||
public partial class Histories : UserControl {
|
||||
public Histories() {
|
||||
InitializeComponent();
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
protected override void OnUnloaded(RoutedEventArgs e) {
|
||||
|
||||
Reference in New Issue
Block a user