Changeset 908 for trunk/guitools/smbmon/smbmon.vrx
- Timestamp:
- May 26, 2016, 9:02:53 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/smbmon/smbmon.vrx
r875 r908 107 107 ok = VRMethod("CN_CHKTDB", "RemoveRecord", "ALL") 108 108 109 RecHandleArray.0 = 0 110 ok = VRSet("CN_CHKTDB", "Painting", 0) 111 109 112 do I = 1 to tdb.0 110 RecHandle = VRMethod("CN_CHKTDB", "Addrecord") 113 RecHandleArray.I = VRMethod("CN_CHKTDB", "Addrecord") 114 end 115 ok = VRSet("CN_CHKTDB", "Painting", 1) 116 117 /* ok = VRSet("CN_CHKTDB", "Painting", 0) */ 118 119 do I = 1 to tdb.0 120 RecHandle = RecHandleArray.I 111 121 TDBFile =left(filespec('N',tdb.I), 22) 112 ok = VRMethod("CN_CHKTDB", "SetFieldData", RecHandle, ChkTDBFilesFH, TDBFile, ChkTDBIconFH, "$50" ) 122 TDBSize = stream(tdb.I,'c','query size') 123 ok = VRMethod("CN_CHKTDB", "SetFieldData", RecHandle, ChkTDBFilesFH, TDBFile, ChkTDBIconFH, "$50", ChkTDBSizeFH, TDBSize||" Bytes" ) 113 124 address cmd '@tdbtool 'tdb.I' check 2>'tdb.I'.err 1>'tdb.I'.out' 114 125 out = linein(tdb.I'.out') … … 142 153 end 143 154 ok = VRMethod("CN_CHKTDB", "SetFieldData", RecHandle, ChkTDBStatusFH, out ) 155 ok = VRSet("CN_CHKTDB", "Painting", 1) 156 ok = VRSet("CN_CHKTDB", "Painting", 0) 157 144 158 ok = stream(tdb.I'.err','c','close') 145 159 end … … 177 191 end 178 192 193 ok = VRSet("CN_CHKTDB", "Painting", 1) 194 179 195 return 180 196 … … 251 267 ChkTDBFilesFH = VRMethod( "CN_CHKTDB", "AddField", "String", NLVGetMessage(134) ) 252 268 ChkTDBIconFH = VRMethod( "CN_CHKTDB", "AddField", "Icon", NLVGetMessage(146) ) 269 ChkTDBSizeFH = VRMethod( "CN_CHKTDB", "AddField", "String", NLVGetMessage(152) ) 253 270 ChkTDBStatusFH= VRMethod( "CN_CHKTDB", "AddField", "String", NLVGetMessage(151) ) 254 271 … … 567 584 */ 568 585 _INIWrite: 569 say 'start _INIWrite()'586 IF options.!debug == 1 then say time()' _INIWrite() started' 570 587 ok = VRSetIni( "Pos", "Top", VRGet("Main","Top"), OurINI, 'NoClose' ) 571 588 ok = VRSetIni( "Pos", "Left", VRGet("Main","Left"), OurINI, 'NoClose' ) … … 605 622 ok = VRSetIni( "Fonts", "Statusfont", VRGet("DT_StatusBar","Font"),OurINI, 'NoClose' ) 606 623 ok = VRSetIni( "Fonts", "Main", VRGet("Main","Font"), OurINI ) 607 say 'done _INIWrite()'624 IF options.!debug == 1 then say time()' _INIWrite() done' 608 625 return 609 626 … … 869 886 ok = stream(refresherr, 'c','close') 870 887 ok = SysFileDelete(refreshouterr) 888 if VRFileExists( samba.!bin"\smbsched.cmd" ) then do 889 address cmd samba.!bin"\smbsched.cmd" 890 end 871 891 872 892 call _RefreshDaemons … … 1198 1218 if uS <> 0 | UpTimeStr = ' 'NlvGetMessage(43)':' then UpTimeStr = UpTimeStr' 'uS' 'NlvGetMessage(49) 1199 1219 1200 ok = VRset("CN_Daemons", "Caption", UpTimeStr) 1220 loggingfreespace = word(sysdriveinfo(left(samba.!log,2)),2)%1024%1024 1221 1222 ok = VRset("CN_Daemons", "Caption", UpTimeStr' 'loggingfreespace' MB') 1223 1224 select 1225 when loggingfreespace < 50 then ok = VRDeleteFile(samba.!log'\log.*') 1226 when loggingfreespace < 100 then ok = VRset("CN_Daemons","BackColor","Red") 1227 when loggingfreespace < 200 then ok = VRset("CN_Daemons","BackColor","Yellow") 1228 otherwise ok = VRset("CN_Daemons","BackColor","SystemWindow") 1229 end 1201 1230 1202 1231 IF options.!debug == 1 then say time()' _SambaUptime() done'
Note:
See TracChangeset
for help on using the changeset viewer.