Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Znizit frekvenciu vypisovania idle #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aceman444
Copy link
Contributor

Myslim, ze nemusi zbytocne zaplnovat log hlaskami kazdu sekundu.
Navrhujem kazdu minutu a na zaciatku a na konci cakania.

Myslim, ze nemusi zbytocne zaplnovat log hlaskami kazdu sekundu.
Navrhujem kazdu minutu a na zaciatku a na konci cakania.
@tjamecny
Copy link
Member

Netusim, na co je tato zmena dobra. DiSK mi bezi v screen-e, takze koniec vypisu vyzera takto:

Current Performance: 1949.426964
Time Taken: 9598.000000
Dtat File Size: 18710600

[#0 0% ] Server has no work for us (Nothing to do). Idle for 364:58 (0% idle) ...

T.j. riadok sa prekresluje, nedochadza k ziadnemu scrollovaniu terminalu.
Pokial je ucelom znizit frekvenciu vykreslovania, tak staci zmenit hodnotu za prikazom sleep na 60, najlepsie na 300 (ale netestoval som funkcnost). Kazdopadne musi byt tato hodnota konfigurovatelna, kedze mne vyhovuje sekundovy interval, hlavne pre ucely debugovania DiSK klienta.

@aceman444
Copy link
Contributor Author

Len zmenit hodnotu za sleep nefunguje. Bolo by treba upravit aj dalsie veci. Toto co som spravil sa mi javilo najjednoduchsie.

Pokial sa vystup posiela do suboru ako robia tie skripty, tak sa neprekresluje ale pridava novy riadok kazdu sekundu. Za par dni uz toho mam 100MB.

Konfigurovatelnost by bola fajn. Mate nejake preferencie do ktoreho z tych suborov to dat a ako nazvat premennu?

@didoa
Copy link

didoa commented Oct 26, 2017

v tahlib vo funkcii talkInSleep pridat napr. if ( !$Config{Log} ) a do general.conf si pridate Log=1 ...a stichne to (treba testnut, hrabem sa v kode len po pamati ;) )

statusMessage(sprintf("%s. Idle for %d:%02d (%d%% idle) ", $message, $idleFor/60, $idleFor%60, $totalseconds ? $idleSeconds * 100 / $totalseconds : 100)) **if ( !$Config{Log} );**

@aceman444
Copy link
Contributor Author

Dakujem, to teoreticky funguje. Ale general.conf ma v hlavicke "DO NOT EDIT". Ale ide to zadat aj do freemapdisk.conf.
Takze teraz kazdych 5 minut dostanem hlasku "Downloading: Request from server..." ak je idle.
To by mohlo stacit. Ak by toto bolo priechodnejsie k zacleneniu, bude mi to vyhovovat :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants