@@ -2405,7 +2405,7 @@ srs_error_t SrsConfig::check_normal_config()
2405
2405
}
2406
2406
}
2407
2407
if (true ) {
2408
- SrsConfDirective* conf = get_heartbeart ();
2408
+ SrsConfDirective* conf = get_heartbeat ();
2409
2409
for (int i = 0 ; conf && i < (int )conf->directives .size (); i++) {
2410
2410
string n = conf->at (i)->name ;
2411
2411
if (n != " enabled" && n != " interval" && n != " url"
@@ -8708,7 +8708,7 @@ string SrsConfig::get_vhost_http_remux_mount(string vhost)
8708
8708
return conf->arg0 ();
8709
8709
}
8710
8710
8711
- SrsConfDirective* SrsConfig::get_heartbeart ()
8711
+ SrsConfDirective* SrsConfig::get_heartbeat ()
8712
8712
{
8713
8713
return root->get (" heartbeat" );
8714
8714
}
@@ -8719,7 +8719,7 @@ bool SrsConfig::get_heartbeat_enabled()
8719
8719
8720
8720
static bool DEFAULT = false ;
8721
8721
8722
- SrsConfDirective* conf = get_heartbeart ();
8722
+ SrsConfDirective* conf = get_heartbeat ();
8723
8723
if (!conf) {
8724
8724
return DEFAULT;
8725
8725
}
@@ -8738,7 +8738,7 @@ srs_utime_t SrsConfig::get_heartbeat_interval()
8738
8738
8739
8739
static srs_utime_t DEFAULT = (srs_utime_t )(10 * SRS_UTIME_SECONDS);
8740
8740
8741
- SrsConfDirective* conf = get_heartbeart ();
8741
+ SrsConfDirective* conf = get_heartbeat ();
8742
8742
if (!conf) {
8743
8743
return DEFAULT;
8744
8744
}
@@ -8757,7 +8757,7 @@ string SrsConfig::get_heartbeat_url()
8757
8757
8758
8758
static string DEFAULT = " http://" SRS_CONSTS_LOCALHOST " :8085/api/v1/servers" ;
8759
8759
8760
- SrsConfDirective* conf = get_heartbeart ();
8760
+ SrsConfDirective* conf = get_heartbeat ();
8761
8761
if (!conf) {
8762
8762
return DEFAULT;
8763
8763
}
@@ -8776,7 +8776,7 @@ string SrsConfig::get_heartbeat_device_id()
8776
8776
8777
8777
static string DEFAULT = " " ;
8778
8778
8779
- SrsConfDirective* conf = get_heartbeart ();
8779
+ SrsConfDirective* conf = get_heartbeat ();
8780
8780
if (!conf) {
8781
8781
return DEFAULT;
8782
8782
}
@@ -8795,7 +8795,7 @@ bool SrsConfig::get_heartbeat_summaries()
8795
8795
8796
8796
static bool DEFAULT = false ;
8797
8797
8798
- SrsConfDirective* conf = get_heartbeart ();
8798
+ SrsConfDirective* conf = get_heartbeat ();
8799
8799
if (!conf) {
8800
8800
return DEFAULT;
8801
8801
}
@@ -8814,7 +8814,7 @@ bool SrsConfig::get_heartbeat_ports()
8814
8814
8815
8815
static bool DEFAULT = false ;
8816
8816
8817
- SrsConfDirective* conf = get_heartbeart ();
8817
+ SrsConfDirective* conf = get_heartbeat ();
8818
8818
if (!conf) {
8819
8819
return DEFAULT;
8820
8820
}
0 commit comments