Fixed deactivation time in tooltip

pull/91/head
parent 7e718d5fa8
commit f9d1e68eb8

@ -1773,7 +1773,7 @@ gboolean on_tooltip_show(GtkWidget*, gint x, gint y, gboolean, GtkTooltip* toolt
int deactivated_size;
config_str deactivated_parsed = yon_char_parse(target[2],&deactivated_size," ");
int date_size;
config_str date_parsed = yon_char_parse(deactivated_parsed[0],&date_size,"-");
config_str date_parsed = yon_char_parse(deactivated_parsed[1],&date_size,"-");
if (date_size>=2){
char *temp = date_parsed[0];
date_parsed[0]=date_parsed[2];

@ -85,7 +85,7 @@
#define list_of_sockets_command "systemctl list-sockets --all --no-pager| sed -e 's/ */;/g'"
#define list_of_timers_command "systemctl list-timers --all --no-pager| sed -e 's/ */;/g'"
#define list_of_session_command "while IFS=\" \" read -r GET_SESSION GET_UID GET_USER GET_SEAT GET_TTY; do echo -e \"${GET_SESSION} $(loginctl session-status ${GET_SESSION} --no-page | sed -Enr \"s/^\\s*State: (.*)$/\1/p\") ${GET_UID} ${GET_USER} ${GET_SEAT} ${GET_TTY}\"; done < <(loginctl list-sessions --no-legend)"
#define get_activate_deactivate_times(target) yon_char_append("systemctl show --timestamp=utc -p Names -p ActiveEnterTimestamp -p InactiveEnterTimestampMonotonic ",target)
#define get_activate_deactivate_times(target) yon_char_append("systemctl show --timestamp=utc -p Names -p ActiveEnterTimestamp -p InactiveEnterTimestamp ",target)
#define config_get_command(target) yon_char_append("cat ",target)

Loading…
Cancel
Save