|
@@ -177,7 +177,6 @@ static const char* dst_blst_stats_get_doc[] = {
|
|
#define MAX_CTIME_LEN 128
|
|
#define MAX_CTIME_LEN 128
|
|
|
|
|
|
/* up time */
|
|
/* up time */
|
|
-static time_t up_since;
|
|
|
|
static char up_since_ctime[MAX_CTIME_LEN];
|
|
static char up_since_ctime[MAX_CTIME_LEN];
|
|
|
|
|
|
|
|
|
|
@@ -646,7 +645,6 @@ rpc_export_t core_rpc_methods[] = {
|
|
int rpc_init_time(void)
|
|
int rpc_init_time(void)
|
|
{
|
|
{
|
|
char *t;
|
|
char *t;
|
|
- time(&up_since);
|
|
|
|
t=ctime(&up_since);
|
|
t=ctime(&up_since);
|
|
if (strlen(t)+1>=MAX_CTIME_LEN) {
|
|
if (strlen(t)+1>=MAX_CTIME_LEN) {
|
|
ERR("Too long data %d\n", (int)strlen(t));
|
|
ERR("Too long data %d\n", (int)strlen(t));
|