mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[info] Show number of temporary files
This commit is contained in:
parent
bbb18c506a
commit
f351f66f84
@ -259,7 +259,11 @@ get_resource_info(struct terminal *term, void *data)
|
|||||||
|
|
||||||
val = list_size(&sessions);
|
val = list_size(&sessions);
|
||||||
val_add(n_("%ld session", "%ld sessions", val, term));
|
val_add(n_("%ld session", "%ld sessions", val, term));
|
||||||
add_char_to_string(&info, '.');
|
add_to_string(&info, ".\n");
|
||||||
|
|
||||||
|
add_to_string(&info, _("Number of temporary files", term));
|
||||||
|
val = get_number_of_temporary_files();
|
||||||
|
add_format_to_string(&info, ": %ld.", val);
|
||||||
|
|
||||||
#ifdef DEBUG_MEMLEAK
|
#ifdef DEBUG_MEMLEAK
|
||||||
add_char_to_string(&info, '\n');
|
add_char_to_string(&info, '\n');
|
||||||
|
@ -72,6 +72,12 @@ clean_temporary_files(void)
|
|||||||
uri_tempfiles.clear();
|
uri_tempfiles.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long
|
||||||
|
get_number_of_temporary_files(void)
|
||||||
|
{
|
||||||
|
return temporary_files.size();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
redraw_terminal(struct terminal *term)
|
redraw_terminal(struct terminal *term)
|
||||||
{
|
{
|
||||||
|
@ -208,6 +208,7 @@ void destroy_all_terminals(void);
|
|||||||
void exec_thread(char *, int);
|
void exec_thread(char *, int);
|
||||||
void close_handle(void *);
|
void close_handle(void *);
|
||||||
void clean_temporary_files(void);
|
void clean_temporary_files(void);
|
||||||
|
long get_number_of_temporary_files(void);
|
||||||
|
|
||||||
#ifdef CONFIG_FASTMEM
|
#ifdef CONFIG_FASTMEM
|
||||||
#define assert_terminal_ptr_not_dangling(suspect) ((void) 0)
|
#define assert_terminal_ptr_not_dangling(suspect) ((void) 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user