This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
sdk:connection-statistics [2017/10/10 15:01] – fachet | sdk:connection-statistics [2019/02/18 14:15] – juraschek | ||
---|---|---|---|
Line 131: | Line 131: | ||
int logNow() | int logNow() | ||
//get current status output | //get current status output | ||
- | sections=mkarray(" | + | sections=mkarray(" |
status=mkstruct(); | status=mkstruct(); | ||
for (i=0; | for (i=0; | ||
Line 182: | Line 182: | ||
nb_syslog(" | nb_syslog(" | ||
//if we don't have enough space delete enough old ones to have enough space | //if we don't have enough space delete enough old ones to have enough space | ||
- | for(i=0; | ||
- | if (this.currentLogSize < (this.maxLogSize-this.freespace)) break; | ||
- | if(remove(sprintf(" | ||
- | this.currentLogSize=this.currentLogSize-size[i]; | ||
- | nb_syslog(" | ||
- | } else { | ||
- | nb_syslog(" | ||
- | } | ||
- | } | ||
- | | ||
return 0; | return 0; | ||
} | } |