GetDriveSpace called every 10 seconds, possible problem for nas?
#1
I've noticed from the tvheadend client debugging output that GetDriveSpace is being called constantly, about every 10 seconds.
Code:
20:50:05 50956.429688 T:1586492480   DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - sending message [getDiskSpace : 3392]
20:50:05 50956.433594 T:1680720960   DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - received response [3392]
20:50:15 50966.441406 T:1586492480   DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - sending message [getDiskSpace : 3393]
20:50:15 50966.441406 T:1680720960   DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - received response [3393]

I can see this is due to the call to UpdateBackendCache
https://github.com/xbmc/xbmc/blob/master...o.cpp#L223

I'm wondering if this may stop my nas from going to sleep. Why does this information need to updated so frequently?
Leopold's Repository: Home of LibreELEC Dev Updater ...
Reply
#2
It probably doesn't, the problem is that most backends can't "push" data to Kodi so we have to poll repeatedly instead. I'm not really sure what a better solution would be. We could cache the value in the addon, but that would only fix it for pvr.hts.
Reply

Logout Mark Read Team Forum Stats Members Help
GetDriveSpace called every 10 seconds, possible problem for nas?0