Skip to content

Commit a36dc24

Browse files
committed
done1
1 parent 37e289d commit a36dc24

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

pulse.sample.bizcounter/java-sample/pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,27 @@
4444
<target>1.8</target>
4545
</configuration>
4646
</plugin>
47+
<plugin>
48+
<groupId>org.apache.maven.plugins</groupId>
49+
<artifactId>maven-shade-plugin</artifactId>
50+
<version>2.4.3</version>
51+
<configuration>
52+
<transformers>
53+
<transformer
54+
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
55+
<mainClass>scouterx.pulse.sample.bizcounter.App</mainClass>
56+
</transformer>
57+
</transformers>
58+
</configuration>
59+
<executions>
60+
<execution>
61+
<phase>package</phase>
62+
<goals>
63+
<goal>shade</goal>
64+
</goals>
65+
</execution>
66+
</executions>
67+
</plugin>
4768
<plugin>
4869
<groupId>org.apache.maven.plugins</groupId>
4970
<artifactId>maven-dependency-plugin</artifactId>

pulse.sample.bizcounter/java-sample/src/main/java/scouterx/pulse/sample/bizcounter/BizDataController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private float getRandomSample2(String type) {
118118
prev.put(type, value);
119119
}
120120

121-
value = value + (float) Math.random() * value / 20;
121+
value = value + (float) Math.random() * 30;
122122
prev2.put(type, value);
123123

124124
return value;

pulse.sample.bizcounter/java-sample/startup.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)