plugins/s3_auth/s3_auth.cc
static long
cal_reload_delay(long time_diff)
{
  if (time_diff > 3600) {
    return time_diff - 3600;
  } else if (time_diff > 900) {
    return time_diff - 900;
  } else {
    return time_diff;
  }
}
// If the token has more than one hour to expire, reload is scheduled one hour before expiration.
// If the token has less than one hour to expire, reload is scheduled 15 minutes before expiration.
// If the token has less than 15 minutes to expire, reload is scheduled at the expiration time.
If the token has more than one hour to expire, reload is scheduled one hour before expiration.
If the token has less than one hour to expire, reload is scheduled 15 minutes before expiration.
If the token has less than 15 minutes to expire, reload is scheduled at the expiration time.
If the token has more than one hour to expire reload is scheduled one hour before expiration . If the token has less than one hour to expire reload is scheduled 15 minutes before expiration . If the token has less than 15 minutes to expire reload is scheduled at the expiration time .
static long
cal_reload_delay(long time_diff)
{
  if (time_diff > 3600) {
    return time_diff - 3600;
  } else if (time_diff > 900) {
    return time_diff - 900;
  } else {
    return time_diff;
  }
}
static long cal_reload_delay ( long time_diff ) { if ( time_diff > 3600 ) { return time_diff - 3600 ; } else if ( time_diff > 900 ) { return time_diff - 900 ; } else { return time_diff ; } }
If the token has more than one hour to expire, reload is scheduled one hour before expiration.
If the token has more than one hour to expire reload is scheduled one hour before expiration .