Skip to content

Commit

Permalink
Merge pull request #166 from opentable/bugfix
Browse files Browse the repository at this point in the history
Bugfix and docs
  • Loading branch information
matteofigus committed Jan 14, 2016
2 parents 6c62a2c + 1320181 commit 6bbaa52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ options.routes = [{
|Event name|Callback Data Type|Description|
|---------|------|-------|
|`cache-poll`|`object`|Fired when the components list is refreshed. The callback data contains the last edit unix utc timestamp.|
|`component-retrieved`|`object`|Fired when the component is retrieved. This includes the component's validation, data gathering and execution, view retrieving, and (when requested) rendering. The callback data contains the duration, component details, and, in case, the error details.|
|`error`|`object`|Fired when an internal operation errors.|
|`request`|`object`|Fired every time the registry receives a request. The callback data contains some request and response details.|
|`start`|`undefined`|Fired when the registry starts|
Expand Down
2 changes: 1 addition & 1 deletion registry/routes/helpers/get-component-retrieving-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = function(options){
var delta = process.hrtime(start),
nanosec = delta[0] * 1e9 + delta[1];

eventData.duration = nanosec / 1e6;
eventData.duration = nanosec / 1e3;

return eventData;
}
Expand Down

0 comments on commit 6bbaa52

Please sign in to comment.