summaryrefslogtreecommitdiff
path: root/databases/mytop
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2007-04-11 23:47:05 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2007-04-11 23:47:05 +0000
commit9f010cb8560dda42835fc70e845ad5450628446f (patch)
tree2006942bb47f1815d9b887d8d4b56b8bb20732f4 /databases/mytop
parentOn amd64 forcefully compile with -O0, since otherwise centericq segfaults (diff)
- fix of warning if slave is stopped
- bump PORTREVISION Submitted by: rajo at platon.sk
Notes
Notes: svn path=/head/; revision=189827
Diffstat (limited to 'databases/mytop')
-rw-r--r--databases/mytop/Makefile2
-rw-r--r--databases/mytop/files/patch-mytop6
2 files changed, 4 insertions, 4 deletions
diff --git a/databases/mytop/Makefile b/databases/mytop/Makefile
index bac1096dc503..8e9851fc2afd 100644
--- a/databases/mytop/Makefile
+++ b/databases/mytop/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mytop
PORTVERSION= 1.6
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= databases
MASTER_SITES= http://jeremy.zawodny.com/mysql/mytop/
diff --git a/databases/mytop/files/patch-mytop b/databases/mytop/files/patch-mytop
index 39f59c10219f..afe00a3bd744 100644
--- a/databases/mytop/files/patch-mytop
+++ b/databases/mytop/files/patch-mytop
@@ -1,5 +1,5 @@
---- mytop.orig Sun Apr 1 08:26:56 2007
-+++ mytop Sun Apr 1 08:27:00 2007
+--- mytop.orig Thu Apr 12 07:42:22 2007
++++ mytop Thu Apr 12 07:42:24 2007
@@ -369,6 +369,10 @@
require Data::Dumper;
print Data::Dumper::Dumper([\%config]);
@@ -51,7 +51,7 @@
+ ? ($s->{Seconds_Behind_Master} > 60 ? BOLD('WARN') : GREEN('OK ')) : RED('ERR ')
+ ), RESET(),
+ " Delay: ",
-+ sprintf('%03d:%02d', int($s->{Seconds_Behind_Master} / 60), $s->{Seconds_Behind_Master} % 60),
++ defined($s->{Seconds_Behind_Master}) ? sprintf('%03d:%02d', int($s->{Seconds_Behind_Master} / 60), $s->{Seconds_Behind_Master} % 60) : '---:--',
+ " $s->{Master_User}\@$s->{Master_Host}: ",
+ "$s->{Master_Log_File}/$s->{Read_Master_Log_Pos} ",
+ "\n";