Minor bug fixes

This commit is contained in:
2023-11-09 12:11:08 +01:00
parent 47103c9950
commit 1f248b61a5
3 changed files with 12 additions and 6 deletions

View File

@@ -1,7 +1,9 @@
for file in client center;
do
for target in windows linux
do
nexe -i $file.js -o out/$file-$target -t $target-x86-18.18.2 --build
done
# for target in windows linux
# do
# pkg throws many errors for me but the builds do work
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

View File

@@ -38,10 +38,14 @@ let failed = 0;
const sendTimer = new NanoTimer();
function startInterval(session, sessionLogger) {
if (!options.messagecount > 0) {
sessionLogger.info("No messages to send");
return;
}
sendTimer.setInterval(
async () => {
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();
} else if (inFlight < options.window) {
sessionLogger.info(`Sending message ${sent + 1}/${options.messagecount}`);

View File

@@ -42,7 +42,7 @@ function startInterval(session, sessionLogger) {
sendTimer.setInterval(
async () => {
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();
} else if (inFlight < options.window) {
sessionLogger.info(`Sending message ${sent + 1}/${options.messagecount}`);