summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-12-26 12:16:47 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-12-26 12:16:47 +0100
commit391ca476742d17d9275ef4e02e9f7cce271697d4 (patch)
treea598c2a7261a787b686f81468e80e07d8942672a /src/core/wee-command.c
parentb770f9c8c52e8af0d42ce94f25ab3d45d3f9b86b (diff)
downloadweechat-391ca476742d17d9275ef4e02e9f7cce271697d4.zip
Add info "weechat_upgrading", signal "upgrade_ended", display duration of upgrade
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index 95612d9a2..dd1d3c95b 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -3865,7 +3865,7 @@ command_uptime (void *data, struct t_gui_buffer *buffer,
(void) data;
(void) argv_eol;
- running_time = time (NULL) - weechat_start_time;
+ running_time = time (NULL) - weechat_first_start_time;
day = running_time / (60 * 60 * 24);
hour = (running_time % (60 * 60 * 24)) / (60 * 60);
min = ((running_time % (60 * 60 * 24)) % (60 * 60)) / 60;
@@ -3880,7 +3880,7 @@ command_uptime (void *data, struct t_gui_buffer *buffer,
hour,
min,
sec,
- ctime (&weechat_start_time));
+ ctime (&weechat_first_start_time));
string[strlen (string) - 1] = '\0';
input_data (buffer, string);
}
@@ -3894,7 +3894,7 @@ command_uptime (void *data, struct t_gui_buffer *buffer,
hour,
min,
sec,
- util_get_time_string (&weechat_start_time));
+ util_get_time_string (&weechat_first_start_time));
input_data (buffer, string);
}
else
@@ -3918,7 +3918,7 @@ command_uptime (void *data, struct t_gui_buffer *buffer,
sec,
GUI_COLOR(GUI_COLOR_CHAT),
GUI_COLOR(GUI_COLOR_CHAT_BUFFER),
- util_get_time_string (&weechat_start_time));
+ util_get_time_string (&weechat_first_start_time));
}
return WEECHAT_RC_OK;
@@ -3953,7 +3953,7 @@ command_version_display (struct t_gui_buffer *buffer,
weechat_upgrade_count,
/* TRANSLATORS: text is: "upgraded xx times" */
NG_("time", "times", weechat_upgrade_count),
- util_get_time_string (&weechat_start_time));
+ util_get_time_string (&weechat_first_start_time));
input_data (buffer, string);
}
}
@@ -3972,7 +3972,7 @@ command_version_display (struct t_gui_buffer *buffer,
"Upgraded %d %s, first start: %s",
weechat_upgrade_count,
(weechat_upgrade_count > 1) ? "times" : "time",
- ctime (&weechat_start_time));
+ ctime (&weechat_first_start_time));
string[strlen (string) - 1] = '\0';
input_data (buffer, string);
}
@@ -3996,7 +3996,7 @@ command_version_display (struct t_gui_buffer *buffer,
weechat_upgrade_count,
/* TRANSLATORS: text is: "upgraded xx times" */
NG_("time", "times", weechat_upgrade_count),
- util_get_time_string (&weechat_start_time));
+ util_get_time_string (&weechat_first_start_time));
}
}
}