use MSD for battery calculations, fix segfault

This commit is contained in:
2017-08-25 06:11:18 +03:00
parent ea5d73d8fd
commit 2d7d4c55a2
5 changed files with 68 additions and 41 deletions

View File

@ -59,9 +59,9 @@ const char STATIC_KEYS[]
"gputemp,gpu,memmb,memgb,memfreemb,memfreegb,memtotmb,memtotgb,memusedmb,"
"memusedgb,mem,swapmb,swapgb,swapfreemb,swapfreegb,swaptotmb,swaptotgb,"
"swap,downunits,upunits,downkb,downtotkb,downtot,down,uptotkb,uptot,upkb,"
"up,netdev,ac,bat,album,artist,duration,progress,title,dalbum,dartist,"
"dtitle,salbum,sartist,stitle,pscount,pstot,ps,desktop,ndesktop,"
"tdesktops,la15,la5,la1";
"up,netdev,ac,bat,batleft,batnow,batrate,battotal,album,artist,duration,"
"progress,title,dalbum,dartist,dtitle,salbum,sartist,stitle,pscount,pstot"
",ps,desktop,ndesktop,tdesktops,la15,la5,la1";
#cmakedefine BUILD_FUTURE
#cmakedefine BUILD_LOAD
#cmakedefine BUILD_TESTING