Skip to content

Commit

Permalink
round the fps so we can bencode it
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@13474 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Aug 26, 2016
1 parent 7e4f783 commit 656d175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/server/window/video_subregion.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def updateregion(rect):
self.time = time.time()
self.inout = inoutcount(rect)
self.score = scoreinout(rect, *self.inout)
self.fps = self.inout[0]/(rect.width*rect.height) / (time.time()-from_time)
self.fps = int(self.inout[0]/(rect.width*rect.height) / (time.time()-from_time))
rects = [self.rectangle]
for _,x,y,w,h in lde:
r = rectangle(x,y,w,h)
Expand Down

0 comments on commit 656d175

Please sign in to comment.