Skip to content

Commit

Permalink
Update HTTPBindings.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega authored Sep 26, 2024
1 parent 537ea76 commit 4f523b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bindings/HTTPBindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function returnCommands(req, res, next) {

if (req.query && req.query.getCmd === '1') {
iotAgentLib.commandQueue(req.device.service, req.device.subservice, req.deviceId, function (error, list) {
res.set(constants.X_PROCESSING_TIME, Date.now() - req.startTime + ' ms ');
res.set(constants.X_PROCESSING_TIME, Date.now() - req.startTime);
if (error || !list || list.count === 0) {
res.set('Content-Type', 'text/plain');
res.status(200).send('');
Expand All @@ -215,7 +215,7 @@ function returnCommands(req, res, next) {
});
} else {
res.set('Content-Type', 'text/plain');
res.set(constants.X_PROCESSING_TIME, Date.now() - req.startTime + ' ms ');
res.set(constants.X_PROCESSING_TIME, Date.now() - req.startTime);
res.status(200).send('');
}
}
Expand Down

0 comments on commit 4f523b1

Please sign in to comment.