[BF] Fixing Bug with Cronjon (stupid bug)

This commit is contained in:
BlubbFish 2017-12-01 16:14:26 +00:00
parent 8cae908a22
commit 925131a52b
5 changed files with 1 additions and 4 deletions

View File

@ -37,7 +37,7 @@ namespace ZwayBot {
private void Runner() {
Thread.Sleep(DateTime.Now.AddMinutes(1).AddSeconds(DateTime.Now.Second * (-1)).AddMilliseconds(DateTime.Now.Millisecond * (-1)) - DateTime.Now);
while (true) {
if(this.crontime.Minute < DateTime.Now.Minute) {
if(this.crontime.Minute != DateTime.Now.Minute) {
this.crontime = DateTime.Now;
foreach (String item in this.ini.GetSections()) {
if(ParseCronString(this.ini.GetValue(item, "cron"))) {

View File

@ -49,9 +49,6 @@
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Utils\Utils\Utils.csproj">
<Project>{fac8ce64-bf13-4ece-8097-aeb5dd060098}</Project>

Binary file not shown.

Binary file not shown.

Binary file not shown.