Skip to content
This repository was archived by the owner on Mar 25, 2019. It is now read-only.

Commit 1398529

Browse files
author
Sjoerd Tieleman
committed
Use millisecond precision for "X-Codem-Notify-Timestamp" header.
1 parent b09425b commit 1398529

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## codem-transcode 0.5.3 (not yet released) ##
22

33
* Bugfix: issue #19 and #20, missing or corrupt ffmpeg will no longer put transcoder in weird state.
4+
* Send "X-Codem-Notify-Timestamp" header for notifications with millisecond precision (instead of second).
45

56
## codem-transcode 0.5.2 (2013/09/10) ##
67

lib/notify-handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var url = require('url'),
44

55
exports.notify = function(job) {
66
var opts = job.parsedOpts();
7-
var notificationTimestamp = Math.round((new Date()).getTime() / 1000);
7+
var notificationTimestamp = new Date().getTime();
88

99
if (opts['callback_urls'] instanceof Array) {
1010
for (var u in opts['callback_urls']) {

0 commit comments

Comments
 (0)