Skip to content

Commit

Permalink
MOD: fix mongodb_replset_lag bug, oldest_secondary_optime is a int value
Browse files Browse the repository at this point in the history
  • Loading branch information
sempr committed Aug 31, 2013
1 parent 0f4b4ae commit b9bd1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/mongodb_replset_lag
Expand Up @@ -30,7 +30,7 @@ class MongoReplicaSetLag(MuninMongoDBPlugin):
if member_state == PRIMARY_STATE:
primary_optime = optime.time
elif member_state == SECONDARY_STATE:
if not oldest_secondary_optime or optime.time < oldest_secondary_optime.time:
if not oldest_secondary_optime or optime.time < oldest_secondary_optime:
oldest_secondary_optime = optime.time

if not primary_optime or not oldest_secondary_optime:
Expand Down

0 comments on commit b9bd1d9

Please sign in to comment.