File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export interface SubjectTransformConfig {
111
111
export interface StreamConsumerLimits {
112
112
/**
113
113
* The default `inactive_threshold` applied to consumers.
114
- * This value is specified in nanoseconds. Pleause use the `nanos()`
114
+ * This value is specified in nanoseconds. Please use the `nanos()`
115
115
* function to convert between millis and nanoseconds. Or `millis()`
116
116
* to convert a nanosecond value to millis.
117
117
*/
@@ -983,11 +983,11 @@ export interface ConsumerUpdateConfig {
983
983
*/
984
984
"max_batch" ?: number ;
985
985
/**
986
- * The maximum expires value that may be set when doing a pull on a Pull Consumer
986
+ * The maximum expires value in nanoseconds that may be set when doing a pull on a Pull Consumer
987
987
*/
988
988
"max_expires" ?: Nanos ;
989
989
/**
990
- * Duration that instructs the server to clean up ephemeral consumers that are inactive for that long
990
+ * Duration in nanoseconds that instructs the server to clean up ephemeral consumers that are inactive for that long
991
991
*/
992
992
"inactive_threshold" ?: Nanos ;
993
993
/**
Original file line number Diff line number Diff line change @@ -1017,11 +1017,11 @@ export type NamedEndpointStats = {
1017
1017
*/
1018
1018
data ?: unknown ;
1019
1019
/**
1020
- * Total processing_time for the service
1020
+ * Total processing_time for the service in nanoseconds
1021
1021
*/
1022
1022
processing_time : Nanos ;
1023
1023
/**
1024
- * Average processing_time is the total processing_time divided by the num_requests
1024
+ * Average processing_time, in nanoseconds, is the total processing_time divided by the num_requests
1025
1025
*/
1026
1026
average_processing_time : Nanos ;
1027
1027
/**
Original file line number Diff line number Diff line change @@ -664,7 +664,7 @@ class NamedEndpointStatsImpl implements NamedEndpointStats {
664
664
const qii = qi as QueuedIteratorImpl < unknown > ;
665
665
if ( qii ?. noIterator === false ) {
666
666
// grab stats in the iterator
667
- this . processing_time = qii . time ;
667
+ this . processing_time = nanos ( qii . time ) ;
668
668
this . num_requests = qii . processed ;
669
669
this . average_processing_time =
670
670
this . processing_time > 0 && this . num_requests > 0
You can’t perform that action at this time.
0 commit comments