Advertisement
suryadewa

kimcilhot

Jan 6th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. vrscope1.setdata(0, download div 400);
  2. vrscope1.setdata(0, upload div 400);
  3.  
  4. -----
  5.  
  6. procedure TForm1.Timer1Timer(Sender: TObject);
  7. begin
  8. if download2 < 1024 then
  9. sLabel13.Caption := FormatFloat('Received: ##0.## Bit',download2)
  10. else if (download2 > 1024) and (download2 < 1048576) then
  11. sLabel13.Caption := FormatFloat('Received: ##0.## Kb',download2/1024)
  12. else if (download2 > 1048576) and (download2 < 1073741824) then
  13. sLabel13.Caption := FormatFloat('Received: ##0.## Mb',download2/1048576)
  14. else if (download2 > 1073741824) and (download2 < 1099511627776) then
  15. sLabel13.Caption := FormatFloat('Received: ##0.## Gb',download2/1073741824);
  16.  
  17. if upload2 < 1024 then
  18. sLabel15.Caption := FormatFloat('Send: ##0.## Bit',upload2)
  19. else if (upload2 > 1024) and (upload2 < 1048576) then
  20. sLabel15.Caption := FormatFloat('Send: ##0.## Kb', upload2/1024)
  21. else if (upload2 > 1048576) and (upload2 < 1073741824) then
  22. sLabel15.Caption := FormatFloat('Send: ##0.## Mb', upload2/1048576)
  23. else if (upload2 > 1073741824) and (upload2 < 1099511627776) then
  24. sLabel15.Caption := FormatFloat('Send: ##0.## Gb', upload2/1073741824);
  25. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement