Skip to content

Commit

Permalink
Merge pull request #1 from ryul99/1.0.8C
Browse files Browse the repository at this point in the history
Fix null exception and show days-included hours
  • Loading branch information
Manbocoon authored Mar 11, 2023
2 parents a9e94c1 + a81890f commit 43f453f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private void showTimeData()

this.Invoke((MethodInvoker)delegate ()
{
elapsed_time.Text = "경과 시간: " + (time_span.Hours + "시간 ") + (time_span.Minutes + "") + (time_span.Seconds + "");
elapsed_time.Text = "경과 시간: " + (time_span.Days * 24 + time_span.Hours + "시간 ") + (time_span.Minutes + "") + (time_span.Seconds + "");
remained_time.Text = "남은 시간: " + (hour + "시간 ") + (minute + "") + (second + "");
});
}
Expand Down
14 changes: 8 additions & 6 deletions Forms/ProcessListForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,16 @@ private void addProcessesToList()
bool already_exist = false;
if (process_filePath == null)
already_exist = true;

for (int i_exist=0; i_exist< check_exist.Count; ++i_exist)
else
{
if (Path.GetFileName(process_filePath).ToLower().Trim() == check_exist[i_exist].ToLower())
for (int i_exist = 0; i_exist < check_exist.Count; ++i_exist)
{
already_exist = true;
break;
}
if (Path.GetFileName(process_filePath).ToLower().Trim() == check_exist[i_exist].ToLower())
{
already_exist = true;
break;
}
}
}

if (already_exist)
Expand Down

0 comments on commit 43f453f

Please sign in to comment.