Minor bug fixes
This commit is contained in:
10
build.sh
10
build.sh
@@ -1,7 +1,9 @@
|
|||||||
for file in client center;
|
for file in client center;
|
||||||
do
|
do
|
||||||
for target in windows linux
|
# for target in windows linux
|
||||||
do
|
# do
|
||||||
nexe -i $file.js -o out/$file-$target -t $target-x86-18.18.2 --build
|
# pkg throws many errors for me but the builds do work
|
||||||
done
|
pkg $file.js --output out/$file --targets node18-linux-x64,node18-win-x64
|
||||||
|
# nexe -i $file.js -o out/$file-$target -t $target-x86-18.18.2 --build
|
||||||
|
# done
|
||||||
done
|
done
|
@@ -38,10 +38,14 @@ let failed = 0;
|
|||||||
const sendTimer = new NanoTimer();
|
const sendTimer = new NanoTimer();
|
||||||
|
|
||||||
function startInterval(session, sessionLogger) {
|
function startInterval(session, sessionLogger) {
|
||||||
|
if (!options.messagecount > 0) {
|
||||||
|
sessionLogger.info("No messages to send");
|
||||||
|
return;
|
||||||
|
}
|
||||||
sendTimer.setInterval(
|
sendTimer.setInterval(
|
||||||
async () => {
|
async () => {
|
||||||
if (sent >= options.messagecount) {
|
if (sent >= options.messagecount) {
|
||||||
logger.info(`Finished sending messages success:${success}, failed:${failed}, idling...`);
|
sessionLogger.info(`Finished sending messages success:${success}, failed:${failed}, idling...`);
|
||||||
sendTimer.clearInterval();
|
sendTimer.clearInterval();
|
||||||
} else if (inFlight < options.window) {
|
} else if (inFlight < options.window) {
|
||||||
sessionLogger.info(`Sending message ${sent + 1}/${options.messagecount}`);
|
sessionLogger.info(`Sending message ${sent + 1}/${options.messagecount}`);
|
||||||
|
@@ -42,7 +42,7 @@ function startInterval(session, sessionLogger) {
|
|||||||
sendTimer.setInterval(
|
sendTimer.setInterval(
|
||||||
async () => {
|
async () => {
|
||||||
if (sent >= options.messagecount) {
|
if (sent >= options.messagecount) {
|
||||||
logger.info(`Finished sending messages success:${success}, failed:${failed}, idling...`);
|
sessionLogger.info(`Finished sending messages success:${success}, failed:${failed}, idling...`);
|
||||||
sendTimer.clearInterval();
|
sendTimer.clearInterval();
|
||||||
} else if (inFlight < options.window) {
|
} else if (inFlight < options.window) {
|
||||||
sessionLogger.info(`Sending message ${sent + 1}/${options.messagecount}`);
|
sessionLogger.info(`Sending message ${sent + 1}/${options.messagecount}`);
|
||||||
|
Reference in New Issue
Block a user