Skip to content

Commit

Permalink
change default value for interval in LogAllThreads
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Dec 15, 2024
1 parent ae071b4 commit aae86c6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public final class LogAllThreads implements Function {
private static final long serialVersionUID = -1922482127354478506L;

public static String call(PageContext pc, String path) throws PageException {
return call(pc, path, 10, 10000);
return call(pc, path, 0, 10000);
}

public static String call(PageContext pc, String path, Number interval) throws PageException {
Expand All @@ -31,7 +31,7 @@ public static String call(PageContext pc, String path, Number interval, Number d
throw new FunctionException(pc, "LogAllThreads", 1, "path", "the directory [" + res.getParent() + "] for your log file [" + path + "] does not exist.");

int tmp = Caster.toIntValue(interval);
if (tmp < 1) tmp = 10;
if (tmp < 0) tmp = 10;
final long interv = tmp;

long ltmp = Caster.toLongValue(duration);
Expand All @@ -50,7 +50,7 @@ public static String call(PageContext pc, String path, Number interval, Number d
Controler.dumpThreadPositions(res);

// Pause for the specified interval
SystemUtil.sleep(interv);
if (interv > 0) SystemUtil.sleep(interv);
}
catch (IOException e) {
SystemUtil.sleep(1000);
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/resource/fld/core-base.fld
Original file line number Diff line number Diff line change
Expand Up @@ -9572,7 +9572,7 @@ The following things are considered to be empty:
<name>interval</name>
<type>number</type>
<required>false</required>
<default>10</default>
<default>0</default>
<description>
The time interval (in milliseconds) between stack trace captures. Lower values provide
more detailed analysis but generate larger log files and may impact performance.
Expand Down
2 changes: 1 addition & 1 deletion loader/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<project default="core" basedir="." name="Lucee"
xmlns:resolver="antlib:org.apache.maven.resolver.ant">

<property name="version" value="7.0.0.83-SNAPSHOT"/>
<property name="version" value="7.0.0.84-SNAPSHOT"/>

<taskdef uri="antlib:org.apache.maven.resolver.ant" resource="org/apache/maven/resolver/ant/antlib.xml">
<classpath>
Expand Down
2 changes: 1 addition & 1 deletion loader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.lucee</groupId>
<artifactId>lucee</artifactId>
<version>7.0.0.83-SNAPSHOT</version>
<version>7.0.0.84-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Lucee Loader Build</name>
Expand Down

0 comments on commit aae86c6

Please sign in to comment.