SCP: Compiler suggested cleanup and spelling fix
This commit is contained in:
parent
9ff642f616
commit
e0108b52a2
2 changed files with 4 additions and 5 deletions
2
makefile
2
makefile
|
@ -87,9 +87,7 @@ else
|
|||
endif
|
||||
find_lib = $(abspath $(strip $(firstword $(foreach dir,$(strip $(LIBPATH)),$(wildcard $(dir)/lib$(1).$(LIBEXT))))))
|
||||
find_include = $(abspath $(strip $(firstword $(foreach dir,$(strip $(INCPATH)),$(wildcard $(dir)/$(1).h)))))
|
||||
$(info OS=$(OS))
|
||||
ifneq ($(findstring Windows,$(OS)),)
|
||||
$(info SHELL=$(SHELL))
|
||||
ifeq ($(findstring .exe,$(SHELL)),.exe)
|
||||
# MinGW
|
||||
WIN32 := 1
|
||||
|
|
7
scp.c
7
scp.c
|
@ -9265,12 +9265,13 @@ if (snd->extoff < snd->insoff) {
|
|||
}
|
||||
else
|
||||
fprintf (st, "No Pending Input Data\n");
|
||||
if ((snd->next_time - sim_gtime()) > 0)
|
||||
if ((snd->next_time - sim_gtime()) > 0) {
|
||||
if ((snd->next_time - sim_gtime()) > (sim_timer_inst_per_sec()/1000000.0))
|
||||
fprintf (st, "Minimum of %d instructions (%d microseconds) befor sending first character\n", (int)(snd->next_time - sim_gtime()),
|
||||
fprintf (st, "Minimum of %d instructions (%d microseconds) before sending first character\n", (int)(snd->next_time - sim_gtime()),
|
||||
(int)((snd->next_time - sim_gtime())/(sim_timer_inst_per_sec()/1000000.0)));
|
||||
else
|
||||
fprintf (st, "Minimum of %d instructions befor sending first character\n", (int)(snd->next_time - sim_gtime()));
|
||||
fprintf (st, "Minimum of %d instructions before sending first character\n", (int)(snd->next_time - sim_gtime()));
|
||||
}
|
||||
if (snd->delay > (sim_timer_inst_per_sec()/1000000.0))
|
||||
fprintf (st, "Minimum of %d instructions (%d microseconds) between characters\n", (int)snd->delay, (int)(snd->delay/(sim_timer_inst_per_sec()/1000000.0)));
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue