Skip to content

Commit 05bebae

Browse files
committed
swapping_ebuilds-0.4.0
1 parent ca99d58 commit 05bebae

File tree

8 files changed

+58
-24
lines changed

8 files changed

+58
-24
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ You can find the ebuild in https://github.com/turulomio/myportage/tree/master/ap
3838

3939
## Changelog
4040

41+
### 0.4.0 (2021-05-02)
42+
43+
* Changed system to swap variation instead of a limit of swap to log
44+
4145
### 0.3.0 (2021-02-21)
4246

4347
* Improved Logging output.

doc/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = SwappingEbuilds
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 0.3.0
41+
PROJECT_NUMBER = 0.4.0
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

locale/es.po

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: RecPermissions\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-02-21 19:19+0100\n"
11+
"POT-Creation-Date: 2021-05-02 06:39+0200\n"
1212
"PO-Revision-Date: 2018-10-22 18:51+0100\n"
1313
"Last-Translator: root <[email protected]>\n"
1414
"Language-Team: Spanish\n"
@@ -42,15 +42,15 @@ msgstr "El comando 'uninstall' solo funciona en Linux"
4242
msgid "You pressed 'Ctrl+C', exiting..."
4343
msgstr "Se ha pulsado 'Ctrl+C', saliendo..."
4444

45-
msgid "{} ({}) [{}] has {} reports ({} per hour) with {} of swap average"
46-
msgstr ""
45+
msgid "{} [{}] has {} reports with {} of swap variation and {} of swap average. They took {}"
46+
msgstr "{} [{}] tiene {} registros con {} de variación de swap y {} de media de swap. Tardaron {}"
4747

4848
#, python-brace-format
4949
msgid "Problem parsing: {line}"
5050
msgstr "Problema al parsear: {line}"
5151

52-
msgid "This app logs in /var/lib/swapping_ebuilds.txt when compiling gentoo packages and swap is over an amount of MB. This allow you to change in package.env the number of processors used, to decrease swapping and improve ebuild time compilation"
53-
msgstr ""
52+
msgid "This app logs swap information in /var/lib/swapping_ebuilds.txt compiling Gentoo packages. This allow you to change in package.env the number of processors used, to decrease swapping and improve ebuild time compilation"
53+
msgstr "Esta aplicación registra información de la swap en /var/lib/swapping_ebuilds.txt al compilar paquetes de Gentoo. Esto te permite cambiar en package.env el número de procesadores a usar, para decrementar el swapping y mejorar el tiempo de compilación"
5454

5555
msgid "Developed by Mariano Muñoz 2017-{}"
5656
msgstr "Desarrollado por Mariano Muñoz 2017-{}"
@@ -61,11 +61,23 @@ msgstr "Analizar el registro"
6161
msgid "Generate log"
6262
msgstr "Generar el registro"
6363

64-
msgid "Minimum megabytes swap amount to be logged. Default is 500MB"
65-
msgstr ""
64+
msgid "Clean log"
65+
msgstr "Limpiar el registro"
66+
67+
msgid "Seconds between medition. Default is 10"
68+
msgstr "Segundos entre mediciones. Por defecto es 10"
6669

67-
msgid "Please add a int to the megabytes argument"
68-
msgstr "Por favor introduca un entero al argumento de megabytes"
70+
msgid "Log cleaned"
71+
msgstr "Registro limpiado"
72+
73+
msgid "Log already cleaned"
74+
msgstr "El registro ya ha sido limpiado"
75+
76+
msgid "{datetime.now()} Ebuild hasn't been detected. Swap: {filesize.naturalsize(used)} (Variation: {filesize.naturalsize(diff)})"
77+
msgstr "{datetime.now()} Ebuild no ha sido detectado. Swap: {filesize.naturalsize(used)} (Variación: {filesize.naturalsize(diff)})"
6978

7079
msgid "No swapping detected"
7180
msgstr "No se ha detectado swapping"
81+
82+
#~ msgid "Please add a int to the megabytes argument"
83+
#~ msgstr "Por favor introduca un entero al argumento de megabytes"

locale/fr.po

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: RecPermissions\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2021-02-21 19:19+0100\n"
10+
"POT-Creation-Date: 2021-05-02 06:44+0200\n"
1111
"PO-Revision-Date: 2018-11-03 07:11+0100\n"
1212
"Last-Translator: root <[email protected]>\n"
1313
"Language-Team: French\n"
@@ -41,14 +41,14 @@ msgstr "La commande 'désinstaller' marche seulement sur Linux"
4141
msgid "You pressed 'Ctrl+C', exiting..."
4242
msgstr ""
4343

44-
msgid "{} ({}) [{}] has {} reports ({} per hour) with {} of swap average"
44+
msgid "{} [{}] has {} reports with {} of swap variation and {} of swap average. They took {}"
4545
msgstr ""
4646

4747
#, python-brace-format
4848
msgid "Problem parsing: {line}"
4949
msgstr ""
5050

51-
msgid "This app logs in /var/lib/swapping_ebuilds.txt when compiling gentoo packages and swap is over an amount of MB. This allow you to change in package.env the number of processors used, to decrease swapping and improve ebuild time compilation"
51+
msgid "This app logs swap information in /var/lib/swapping_ebuilds.txt compiling Gentoo packages. This allow you to change in package.env the number of processors used, to decrease swapping and improve ebuild time compilation"
5252
msgstr ""
5353

5454
msgid "Developed by Mariano Muñoz 2017-{}"
@@ -60,10 +60,19 @@ msgstr ""
6060
msgid "Generate log"
6161
msgstr ""
6262

63-
msgid "Minimum megabytes swap amount to be logged. Default is 500MB"
63+
msgid "Clean log"
6464
msgstr ""
6565

66-
msgid "Please add a int to the megabytes argument"
66+
msgid "Seconds between medition. Default is 10"
67+
msgstr ""
68+
69+
msgid "Log cleaned"
70+
msgstr ""
71+
72+
msgid "Log already cleaned"
73+
msgstr ""
74+
75+
msgid "{datetime.now()} Ebuild hasn't been detected. Swap: {filesize.naturalsize(used)} (Variation: {filesize.naturalsize(diff)})"
6776
msgstr ""
6877

6978
msgid "No swapping detected"

locale/swapping_ebuilds.pot

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-02-21 19:20+0100\n"
11+
"POT-Creation-Date: 2021-05-02 06:45+0200\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -41,14 +41,14 @@ msgstr ""
4141
msgid "You pressed 'Ctrl+C', exiting..."
4242
msgstr ""
4343

44-
msgid "{} ({}) [{}] has {} reports ({} per hour) with {} of swap average"
44+
msgid "{} [{}] has {} reports with {} of swap variation and {} of swap average. They took {}"
4545
msgstr ""
4646

4747
#, python-brace-format
4848
msgid "Problem parsing: {line}"
4949
msgstr ""
5050

51-
msgid "This app logs in /var/lib/swapping_ebuilds.txt when compiling gentoo packages and swap is over an amount of MB. This allow you to change in package.env the number of processors used, to decrease swapping and improve ebuild time compilation"
51+
msgid "This app logs swap information in /var/lib/swapping_ebuilds.txt compiling Gentoo packages. This allow you to change in package.env the number of processors used, to decrease swapping and improve ebuild time compilation"
5252
msgstr ""
5353

5454
msgid "Developed by Mariano Muñoz 2017-{}"
@@ -60,10 +60,19 @@ msgstr ""
6060
msgid "Generate log"
6161
msgstr ""
6262

63-
msgid "Minimum megabytes swap amount to be logged. Default is 500MB"
63+
msgid "Clean log"
6464
msgstr ""
6565

66-
msgid "Please add a int to the megabytes argument"
66+
msgid "Seconds between medition. Default is 10"
67+
msgstr ""
68+
69+
msgid "Log cleaned"
70+
msgstr ""
71+
72+
msgid "Log already cleaned"
73+
msgstr ""
74+
75+
msgid "{datetime.now()} Ebuild hasn't been detected. Swap: {filesize.naturalsize(used)} (Variation: {filesize.naturalsize(diff)})"
6776
msgstr ""
6877

6978
msgid "No swapping detected"

swapping_ebuilds/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from datetime import datetime
2-
__version__ = '0.3.0'
3-
__versiondatetime__ = datetime(2021, 2, 21, 19, 17)
2+
__version__ = '0.4.0'
3+
__versiondatetime__ = datetime(2021, 5, 2, 6, 38)
44
__versiondate__ = __versiondatetime__.date()
1.09 KB
Binary file not shown.

swapping_ebuilds/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def __repr__(self):
123123
def main():
124124
signal(SIGINT, signal_handler)
125125

126-
description=_("This app logs swap information in /var/lib/swapping_ebuilds.txt compiling gentoo packages. This allow you to change in package.env the number of processors used, to decrease swapping and improve ebuild time compilation")
126+
description=_("This app logs swap information in /var/lib/swapping_ebuilds.txt compiling Gentoo packages. This allow you to change in package.env the number of processors used, to decrease swapping and improve ebuild time compilation")
127127
epilog=_("Developed by Mariano Muñoz 2017-{}").format(__versiondate__.year)
128128
parser=argparse.ArgumentParser(description=description,epilog=epilog)
129129
parser.add_argument('--version',action='version', version=__version__)
@@ -141,7 +141,7 @@ def main():
141141
remove(filename)
142142
print(_("Log cleaned"))
143143
else:
144-
print(_("Log already clenaned"))
144+
print(_("Log already cleaned"))
145145
sys.exit(0)
146146

147147
last_swap=swap_memory().used

0 commit comments

Comments
 (0)