Integrate PSI changes.

r2266 | dcl | 2008-01-15 12:02:25 +1100 (Tue, 15 Jan 2008) | 2 lines
This commit is contained in:
Douglas Clowes
2008-01-15 12:02:25 +11:00
parent 8cf55d9e49
commit 56643bb4c5

View File

@@ -34,6 +34,8 @@
/*-------------------- the tail buffer ---------------------------------*/
static pCircular pTail = NULL;
#define MAXTAIL 1000
/*----------------------------------------------------------------------*/
static time_t tLastWrite = 0;
/*----------------------------------------------------------------------*/
void WriteToCommandLog(char *prompt,char *text)
{
@@ -113,6 +115,7 @@
/* automatic file */
if(fauto != NULL)
{
time(&tLastWrite);
if(iNL)
{
fprintf(fauto,"%s %s",prompt, pText);
@@ -316,6 +319,11 @@
fflush(fauto);
}
if (fauto && tLastWrite != 0 && tNow > tLastWrite) {
fflush(fauto);
tLastWrite = 0;
}
return iEnd;
}
/*----------- a command to configure the log --------------------------*/