# getSamplingRate on passive gateway?

**URL:** <https://forum.inductiveautomation.com/t/getsamplingrate-on-passive-gateway/11761>\
**Category:** Module Development\
**Created:** [June 1, 2016, 9:20am UTC](https://forum.inductiveautomation.com/t/getsamplingrate-on-passive-gateway/11761 "2016-06-01T09:20:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [June 1, 2016, 9:20am UTC](https://forum.inductiveautomation.com/t/getsamplingrate-on-passive-gateway/11761/1 "2016-06-01T09:20:41Z")

</div>

I have a redundant gateway with Standby Activity Level set to Warm

My driver keep track of subscribed tags with :

```auto
driverContext.getSubscriptionModel().getSubscriptionItems()
```

I’ve a driven scan class with slow rate to 0ms (fast rate = 5000ms), and driving tag : [System]Gateway/Redundancy/IsActive (=1)  
in order to not poll tags for these driver on the gateway not active.

the following code :

```auto
driverContext.getSubscriptionModel().getSubscriptionItems().get(i).getSamplingRate()
```

return 5000 on both gateway.

I expected that on the not active gateway, the sampling rate returned was 0 ??? ![:scratch:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76d1620bec252bfac07050c889ff5a91dc8a9c25.gif ":scratch:")
