Skip to content

Commit

Permalink
update_view_title: format load seconds as part of the state string
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas authored and Jonas Fonseca committed Sep 16, 2006
1 parent 3c112a8 commit 5becf24
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tig.c
Original file line number Diff line number Diff line change
Expand Up @@ -1335,14 +1335,14 @@ update_view_title(struct view *view)
view->lineno + 1,
view->lines,
lines);
}

if (view->pipe) {
time_t secs = time(NULL) - view->start_time;
if (view->pipe) {
time_t secs = time(NULL) - view->start_time;

/* Three git seconds are a long time ... */
if (secs > 2)
string_format_from(buf, &bufpos, " %lds", secs);
/* Three git seconds are a long time ... */
if (secs > 2)
string_format_from(buf, &bufpos, " %lds", secs);
}
}

if (view == display[current_view])
Expand Down

0 comments on commit 5becf24

Please sign in to comment.