Skip to content

Commit

Permalink
0.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
lesovsky committed Oct 1, 2016
1 parent 435e319 commit cfd9a7a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions doc/Changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
pgcenter (devel) unstable; urgency=low

-- Alexey Lesovsky <[email protected]> Sat, 01 Oct 2016 13:23:00 +0500

pgcenter (0.3.0) unstable; urgency=low

* print static program name in title instead of argv[0].
* exclude (auto)vacuum tasks accounting in xact_maxtime field.
* fix runglish, typos and cosmetic changes.
* change long queries min age from 500ms to 0ms.
Expand Down
6 changes: 3 additions & 3 deletions pgcenter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1012,11 +1012,11 @@ void get_time(char * strtime)
* @window Window where title will be printed.
****************************************************************************
*/
void print_title(WINDOW * window, const char * progname)
void print_title(WINDOW * window)
{
static char strtime[20];
get_time(strtime);
wprintw(window, "%s: %s, ", progname, strtime);
wprintw(window, "%s: %s, ", PROGRAM_NAME, strtime);
}

/*
Expand Down Expand Up @@ -4977,7 +4977,7 @@ int main(int argc, char *argv[])
* Sysstat screen.
*/
wclear(w_sys);
print_title(w_sys, argv[0]);
print_title(w_sys);
print_loadavg(w_sys);
print_cpu_usage(w_sys, st_cpu);
print_mem_usage(w_sys, st_mem_short);
Expand Down
4 changes: 2 additions & 2 deletions pgcenter.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define PGCENTER_H

#define PROGRAM_NAME "pgcenter"
#define PROGRAM_VERSION 0.2
#define PROGRAM_VERSION 0.3
#define PROGRAM_RELEASE 0
#define PROGRAM_ISSUES_URL "https://github.com/lesovsky/pgcenter/issues"

Expand Down Expand Up @@ -928,7 +928,7 @@ void print_iostat(WINDOW * window, WINDOW * w_cmd, struct iodata_s *c_ios[],
void get_speed_duplex(struct nicdata_s * nicdata);

/* print screen functions */
void print_title(WINDOW * window, const char * progname);
void print_title(WINDOW * window);
void print_cpu_usage(WINDOW * window, struct cpu_s *st_cpu[]);
void print_conninfo(WINDOW * window, PGconn *conn, unsigned int console_no);
void print_pg_general(WINDOW * window, struct screen_s * screen, PGconn * conn);
Expand Down

0 comments on commit cfd9a7a

Please sign in to comment.