Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Feb 2012 21:10:10 GMT
From:      Volodymyr Kostyrko <c.kworr@gmail.com>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/165361: x11-wm/e17-module-mem counts memory incorrectly
Message-ID:  <201202222110.q1MLAAVw091560@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/165361; it has been noted by GNATS.

From: Volodymyr Kostyrko <c.kworr@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/165361: x11-wm/e17-module-mem counts memory incorrectly
Date: Wed, 22 Feb 2012 23:01:16 +0200

 This is a multi-part message in MIME format.
 --------------090908010802040908060803
 Content-Type: text/plain; charset=UTF-8; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Here goes patch for counting memory in megabytes.
 
 -- 
 Sphinx of black quartz judge my vow.
 
 --------------090908010802040908060803
 Content-Type: text/plain;
  name="e17-module-mem.patch.txt"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment;
  filename="e17-module-mem.patch.txt"
 
 ZGlmZiAtdXIgc3JjLm9sZC9lX21vZF9tYWluLmMgc3JjL2VfbW9kX21haW4uYwotLS0gc3Jj
 Lm9sZC9lX21vZF9tYWluLmMJMjAxMC0xMS0xMyAxNzo1NjoyMS4wMDAwMDAwMDAgKzAyMDAK
 KysrIHNyYy9lX21vZF9tYWluLmMJMjAxMi0wMi0yMSAyMzo0Mzo0Ni41NDg3OTczNTcgKzAy
 MDAKQEAgLTQyNCwxMSArNDI0LDkgQEAKIAogICAgaWYgKCFpbnN0LT5jaS0+c2hvd19wZXJj
 ZW50KQogICAgICB7Ci0Jc25wcmludGYgKHJlYWxfc3RyLCBzaXplb2YgKHJlYWxfc3RyKSwg
 IlJlYWw6ICVkLyVkIE1CIiwgKHJlYWwgLyAxMDI0KSwKLQkJICAodG90YWxfcmVhbCAvIDEw
 MjQpKTsKKwlzbnByaW50ZiAocmVhbF9zdHIsIHNpemVvZiA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90YWwgPSB0b3Rh
 bF9wYWdlcyAvIFBBR0VTX1BFUl9NRUc7CisgICpwaHlzX3VzZWQgPSAodG90YWxfcGFnZXMg
 LSBmcmVlX3BhZ2VzIC0gaW5hY3RpdmVfcGFnZXMpIC8gUEFHRVNfUEVSX01FRzsKIAogICBp
 ZiAoKHN3YXBpbmZvIChzd190b3RhbCwgc3dfdXNlZCkpICE9IDApCiAgICAgewpPbmx5IGlu
 IHNyYy5vbGQ6IG1hY2hkZXBfbGludXguYwo=
 --------------090908010802040908060803--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202222110.q1MLAAVw091560>