#NEWLINE# def update_graph( self ) : #NEWLINE# #INDENT# val = self . _getvalues ( ) #NEWLINE# swap = ( ( val [ 'SwapTotal' ] - val [ 'SwapFree' ] ) - val . get ( 'SwapCached' , 0 ) ) #NEWLINE# if ( self . maxvalue != val [ 'SwapTotal' ] ) : #NEWLINE# #INDENT# self . maxvalue = val [ 'SwapTotal' ] #NEWLINE# self . fulfill ( swap ) #NEWLINE# #UNINDENT# self . push ( swap )