Commits

Anonymous committed fa7a0b5

enh: add results to readme.

  • Participants
  • Parent commits 5054484

Comments (0)

Files changed (2)

 A simple pip-able Windows status retrieval module with no additional
 dependencies.
 
-Wraps common system status queries from Windows.
+Wraps common system status queries from Windows' ugly C-API.
 
 **Setup**::
 
     fsinfo = get_fs_usage(drive)
     vinfo = get_volinfo(drive)
     print '    %s:\\' % drive
-    print '        Name:', vinfo.name, vinfo.serialno
+    print '        Name:', vinfo.name
     print '        Type:', vinfo.fstype
     print '        Total:', fmt(fsinfo.total)
     print '        Used: ', fmt(fsinfo.used)
     usage = get_perfdata(r'\Memory\Available MBytes', fmt='large')
     print '    Mem Avail: %s MB' % usage
     print
+
+**Results**::
+
+    D:\> python.exe -m winstats
+
+    Memory Stats:
+        Total: 536,330,240 b
+        usage: 31%
+
+    Performance Stats:
+        Cache: 35,921 p
+        Cache: 147,132,416 b
+
+    Disk Stats:
+        Disks: C, D, O
+        C:\
+            Name: System
+            Type: NTFS
+            Total: 10,725,732,352
+            Used:  3,160,956,928
+            Free:  7,564,775,424
+
+    PerfMon queries:
+        Pagefile Usage: 0.55 %
+        CPU Usage: 0.00 %
+        Mem Avail: 347 MB
 from ctypes.wintypes import HANDLE, LONG, LPCSTR, LPCWSTR, DWORD
 from collections import namedtuple
 
-__version__      = '0.50'
+__version__      = '0.50a'
 LPDWORD = PDWORD = ctypes.POINTER(DWORD)
 
 # Mem Stats-------------------------------------------------------------------